class group match condition for edit template

Author Message

Nathalie Grimaud

Monday 18 December 2006 1:31:03 am

I did not have any problem to use the 'class_group' match condition for node/view/full.tpl source but I can't apply the same condition for content/edit.tpl.

Is there anybody who could do it?

Nathalie

Kristof Coomans

Monday 18 December 2006 3:06:10 am

Hello Nathalie

object, class, class_identifier, parent_class, parent_class_identifier seem to be available for content/edit.tpl (see kernel/content/attribute_edit.php), but not class_group.

For content/edit_languages.tpl:
object

For content/edit_draft.tpl and content/edit_conflict.tpl:
object
class
class_identifier
class_group

(all in eZ 3.9 RC2)

The documentation at http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_override_conditions seems to be wrong, and it only lists content/edit.tpl while the content/edit view uses other templates too.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nathalie Grimaud

Monday 18 December 2006 3:40:30 am

Thanks a lot Kristof for this clear explanation.

The content/edit.tpl override works perfectly with the parent_class_identifier match condition.

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 20 2025 17:34:31
Script start
Timing: Jan 20 2025 17:34:31
Module start 'layout'
Timing: Jan 20 2025 17:34:31
Module start 'content'
Timing: Jan 20 2025 17:34:31
Module end 'content'
Timing: Jan 20 2025 17:34:31
Script end

Main resources:

Total runtime0.0166 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.0063 588.0469151.2266
Module start 'layout' 0.00630.0025 739.273436.6797
Module start 'content' 0.00880.0062 775.953190.1875
Module end 'content' 0.01500.0015 866.140629.9922
Script end 0.0165  896.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.1560140.0002
Check MTime0.00106.2931140.0001
Mysql Total
Database connection0.00084.752910.0008
Mysqli_queries0.002615.541430.0009
Looping result0.00000.090610.0000
Template Total0.00127.010.0012
Template load0.00095.404310.0009
Template processing0.00031.597710.0003
Override
Cache load0.00063.480210.0006
General
dbfile0.00127.160280.0001
String conversion0.00000.048940.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