Forums / Setup & design / How i can manage different layout for different admin groups ?

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.

eZ debug

Timing: Jan 18 2025 04:16:47
Script start
Timing: Jan 18 2025 04:16:47
Module start 'content'
Timing: Jan 18 2025 04:16:48
Module end 'content'
Timing: Jan 18 2025 04:16:48
Script end

Main resources:

Total runtime0.9360 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 587.9688180.8047
Module start 'content' 0.00880.9232 768.7734586.0000
Module end 'content' 0.93190.0040 1,354.773442.0391
Script end 0.9359  1,396.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4168140.0003
Check MTime0.00150.1626140.0001
Mysql Total
Database connection0.00070.071610.0007
Mysqli_queries0.884594.5004630.0140
Looping result0.00060.0596610.0000
Template Total0.897895.920.4489
Template load0.00190.198120.0009
Template processing0.895995.722420.4480
Template load and register function0.00020.017710.0002
states
state_id_array0.00090.092310.0009
state_identifier_array0.00120.128120.0006
Override
Cache load0.00150.1624190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.057630.0002
Fetch class attribute name0.00120.127560.0002
XML
Image XML parsing0.00110.119330.0004
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00130.1442250.0001
String conversion0.00000.001430.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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