OE - Different layouts depending on users

Author Message

Pierre Martel

Thursday 24 March 2011 6:06:13 am

Hi,

Is it possible to have OE in mini layout for some users, and in full layout for other users ? I don't find it in role&policies..

Sorry if the answer is somewhere.

Thanks ;)

Consultant Web
Audaxis France - L'esprit libre
Tel: +33 (0)3 20 63 88 88

Damien Pobel

Thursday 24 March 2011 11:53:50 am

Hi Pierre,

the layout of OE is defined in the class definition from a list defined in settings. Apparently, in the template used to render the OE, this info is available in the variable $input_handler.editor_layout_settings that is used to configure OE. So you can probably do an override of this template to switch from one layout to another depending on the user.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Pierre Martel

Friday 25 March 2011 1:29:46 am

Thanks Damien

Consultant Web
Audaxis France - L'esprit libre
Tel: +33 (0)3 20 63 88 88

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 03:04:51
Script start
Timing: Jan 18 2025 03:04:51
Module start 'layout'
Timing: Jan 18 2025 03:04:51
Module start 'content'
Timing: Jan 18 2025 03:04:52
Module end 'content'
Timing: Jan 18 2025 03:04:52
Script end

Main resources:

Total runtime0.5685 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0313152.6406
Module start 'layout' 0.00500.0031 740.671939.4844
Module start 'content' 0.00810.5590 780.1563539.8516
Module end 'content' 0.56710.0014 1,320.007812.1250
Script end 0.5685  1,332.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5984160.0002
Check MTime0.00150.2569160.0001
Mysql Total
Database connection0.00060.107110.0006
Mysqli_queries0.517891.0849580.0089
Looping result0.00050.0905560.0000
Template Total0.537094.420.2685
Template load0.00240.427620.0012
Template processing0.534594.019520.2673
Template load and register function0.00010.020810.0001
states
state_id_array0.00070.120010.0007
state_identifier_array0.00110.198620.0006
Override
Cache load0.00200.3444170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.118320.0003
Fetch class attribute name0.00120.205350.0002
XML
Image XML parsing0.00090.161020.0005
class_abstraction
Instantiating content class attribute0.00000.002160.0000
General
dbfile0.00250.4402220.0001
String conversion0.00000.001640.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs