Personalised view for a node

Author Message

Serge Esteves

Thursday 03 September 2009 5:10:55 am

Hi,
How can I add a personalised view in the editor's list ("embed","embed_inline","full","line) ?
Thanks

Ɓukasz Serwatka

Thursday 03 September 2009 5:27:51 am

Hi,

There is not override key which allows you load template based on the user object. However you can put some logic in your template. Fetch current user, check what group that user belong to then load proper template.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 16:26:57
Script start
Timing: Jan 18 2025 16:26:57
Module start 'layout'
Timing: Jan 18 2025 16:26:57
Module start 'content'
Timing: Jan 18 2025 16:26:57
Module end 'content'
Timing: Jan 18 2025 16:26:57
Script end

Main resources:

Total runtime0.5470 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9141152.6250
Module start 'layout' 0.00570.0025 740.539139.4453
Module start 'content' 0.00820.5375 779.9844523.8125
Module end 'content' 0.54570.0013 1,303.79698.1641
Script end 0.5470  1,311.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5984160.0002
Check MTime0.00130.2429160.0001
Mysql Total
Database connection0.00070.134710.0007
Mysqli_queries0.506692.6088540.0094
Looping result0.00050.0911520.0000
Template Total0.518494.820.2592
Template load0.00180.334220.0009
Template processing0.516694.443720.2583
Template load and register function0.00020.042110.0002
states
state_id_array0.00120.216310.0012
state_identifier_array0.00080.138620.0004
Override
Cache load0.00150.2653100.0001
Sytem overhead
Fetch class attribute can translate value0.00180.333820.0009
Fetch class attribute name0.00110.196730.0004
XML
Image XML parsing0.00070.121620.0003
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00080.1471180.0000
String conversion0.00000.002040.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs