How i can manage different layout for different admin groups ?

Author Message

Brijesh Tekrawala

Wednesday 13 October 2010 5:23:19 am

Hi,

I have requirement where we have two admin groups and i want to show diffrent layout based on thier group.

How can i achieve above requirement?

Thanks in Advance

Brijesh

Heath

Wednesday 13 October 2010 6:38:44 am

Hello Brijesh,

I think you would need to do this within the pagelayout template itself since there is no such template override condition.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Gaetano Giunta

Wednesday 13 October 2010 10:14:39 am

If you really insist to have 2 separate designs, you could create two siteaccesses, and add some hackish code to redirect the admin user to the appropraite siteaccess when logging in (eg. create a separate view from user/login, and use that one for logging in into the admin interface)

Principal Consultant International Business
Member of the Community Project Board

Brijesh Tekrawala

Wednesday 13 October 2010 11:05:30 pm

Thanks , I will check it out.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:22:44
Script start
Timing: Jan 18 2025 05:22:44
Module start 'layout'
Timing: Jan 18 2025 05:22:44
Module start 'content'
Timing: Jan 18 2025 05:22:44
Module end 'content'
Timing: Jan 18 2025 05:22:44
Script end

Main resources:

Total runtime0.7144 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 588.1719152.6563
Module start 'layout' 0.00410.0029 740.828139.5156
Module start 'content' 0.00700.7060 780.3438580.8906
Module end 'content' 0.71300.0014 1,361.234412.0938
Script end 0.7144  1,373.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4525160.0002
Check MTime0.00140.2006160.0001
Mysql Total
Database connection0.00070.092510.0007
Mysqli_queries0.667893.4717620.0108
Looping result0.00060.0837600.0000
Template Total0.682695.520.3413
Template load0.00220.308520.0011
Template processing0.680495.236720.3402
Template load and register function0.00020.022710.0002
states
state_id_array0.00160.218410.0016
state_identifier_array0.00080.111820.0004
Override
Cache load0.00180.2565190.0001
Sytem overhead
Fetch class attribute can translate value0.00110.157230.0004
Fetch class attribute name0.00090.126860.0002
XML
Image XML parsing0.00110.151230.0004
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00080.1091230.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs