Pass an additional value to the edit_attributes template

Author Message

Eric Bourgain

Sunday 21 May 2006 12:48:17 pm

Hi everybody

I'm designing an extension to the admin interface to be able to choose colors from the backoffice (Hn tags, menus, etc...), or to choose some layout preferences. It works fine. But I've a bunch of additional attributes in my content classes, and the edition is really cumbersome.
So I'm looking for a mean to edit only some subpart of the content object.

My idea is to add a button "edit CSS attributes" for instance in the in the button bar of the contents navigation part. It would call the edit action, but I just would show the concerned attributes.

I'd like to rely on the standard edit framework, and only update the attributes I wish to modify. My problem is that I don't know how to let the template know that it has been asked to show only this or that kind of attributes. I have to give it this information, and I don't see how.
If I add a hidden attribute in the admin content/view template, I don't know how to get it, since the content/action modules filters the values that are passed to the edit module, which however doesn't seem to be designed to give them to the template.
If I use a content action, I don't know how to let the system transmit this information to the template, and then rely on the standard edit.

Is there a way to achieve this?
Thanx

Eric

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 18:17:09
Script start
Timing: Jan 18 2025 18:17:09
Module start 'layout'
Timing: Jan 18 2025 18:17:09
Module start 'content'
Timing: Jan 18 2025 18:17:10
Module end 'content'
Timing: Jan 18 2025 18:17:10
Script end

Main resources:

Total runtime1.1563 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 588.1719152.6563
Module start 'layout' 0.00860.0060 740.828139.5078
Module start 'content' 0.01451.1402 780.3359408.7813
Module end 'content' 1.15470.0015 1,189.11728.0938
Script end 1.1562  1,197.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2845160.0002
Check MTime0.00130.1157160.0001
Mysql Total
Database connection0.00220.191710.0022
Mysqli_queries1.097894.9443460.0239
Looping result0.00050.0431440.0000
Template Total1.082693.620.5413
Template load0.00200.176320.0010
Template processing1.080693.453820.5403
Template load and register function0.00020.018210.0002
states
state_id_array0.00200.175310.0020
state_identifier_array0.00110.095520.0006
Override
Cache load0.00160.1400130.0001
Sytem overhead
Fetch class attribute can translate value0.00110.098210.0011
Fetch class attribute name0.00070.063310.0007
XML
Image XML parsing0.00010.009410.0001
class_abstraction
Instantiating content class attribute0.00000.001310.0000
General
dbfile0.00140.1203100.0001
String conversion0.00000.001140.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
1content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs