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.