Override by user role / id, ever requested ?

Author Message

Bertrand Dunogier

Wednesday 06 July 2005 2:51:18 am

Hi,

I have been checking the forums and bug tracker, and I can't find anything...

Has anyone ever requested a match[user_id] or match[role_id] feature in template overrides ?

If yes, what were the conclusions ?

Paul Borgermans

Wednesday 06 July 2005 3:57:18 am

I've thought of that, but ended up checking for roles/user groups in templates.

I use it mainly to add a few buttons to edit/create from the "user" site depending on the roles/groups.

But it would be a logical feature to add, maybe file an enhancement request :-)

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Bertrand Dunogier

Wednesday 06 July 2005 4:46:14 am

Yeah, I think it would be a very nice improvement. It would lower the complexity required to make custom user stuff. Of course you can test in the template based on the user ID, but it's not as clean as the rest of eZ Publish :)

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 21 2025 15:59:21
Script start
Timing: Jan 21 2025 15:59:21
Module start 'layout'
Timing: Jan 21 2025 15:59:21
Module start 'content'
Timing: Jan 21 2025 15:59:21
Module end 'content'
Timing: Jan 21 2025 15:59:21
Script end

Main resources:

Total runtime0.0183 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 593.8516151.2266
Module start 'layout' 0.00480.0038 745.078136.6797
Module start 'content' 0.00860.0081 781.757890.0938
Module end 'content' 0.01660.0017 871.851629.9922
Script end 0.0183  901.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.8828140.0002
Check MTime0.00105.6666140.0001
Mysql Total
Database connection0.00063.439810.0006
Mysqli_queries0.002714.732730.0009
Looping result0.00000.076710.0000
Template Total0.00126.810.0012
Template load0.00094.890510.0009
Template processing0.00031.826510.0003
Override
Cache load0.00063.413810.0006
General
dbfile0.003418.488480.0004
String conversion0.00000.185940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs