View_Parameters in Edit Templates

Author Message

Fraser Hore

Tuesday 10 January 2006 12:30:14 pm

Is there some reason why view_parameters won't work as a method of passing a variable to an edit template?

I've created a system where the user can define how they want a node to be viewed by selecting options in a parent view class. They can decide which attributes to show, whether to display children or not, which class types of children to show, and how to show the children (as a standard list, a foldable list or tables for each class. Similarly, i have a list view class that allows the user to determine how the list of child nodes will look. Fore example, when showing the children as tables by class type, the user can determine which attributes (or columns) to show, how they should be sorted, etc.)

The only problem is that they have to manually type in the attribute and class identifiers which isn't very good. So, i want to pass the node id to the edit template so that the attribute and class identifiers can be determined and listed in the edit view class templates. Ideally they'll be listed with an text box beside each one so the user can determine the order that the attributes or class types will show up. (i have no idea how to get this to work but first things first)

I guess this is way more info than required :-) Any tips on how to pass the node id to the edit template?

Cheers,

Fraser

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 20:19:28
Script start
Timing: Jan 20 2025 20:19:28
Module start 'layout'
Timing: Jan 20 2025 20:19:28
Module start 'content'
Timing: Jan 20 2025 20:19:29
Module end 'content'
Timing: Jan 20 2025 20:19:29
Script end

Main resources:

Total runtime0.9995 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.0052 587.9219151.2109
Module start 'layout' 0.00520.0027 739.132836.6641
Module start 'content' 0.00790.9907 775.7969461.5313
Module end 'content' 0.99860.0008 1,237.32817.8438
Script end 0.9994  1,245.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2991160.0002
Check MTime0.00130.1255160.0001
Mysql Total
Database connection0.00090.091210.0009
Mysqli_queries0.968996.9405460.0211
Looping result0.00040.0365440.0000
Template Total0.974397.520.4872
Template load0.00150.154220.0008
Template processing0.972897.327320.4864
Template load and register function0.00010.009710.0001
states
state_id_array0.00060.055210.0006
state_identifier_array0.00080.080220.0004
Override
Cache load0.00120.1215100.0001
Sytem overhead
Fetch class attribute can translate value0.00050.047310.0005
Fetch class attribute name0.00070.074320.0004
XML
Image XML parsing0.00050.052410.0005
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.0778160.0000
String conversion0.00000.000840.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs