Forums / General / Passing parameters to node_view_gui
Marc Gibert GinestÃ
Friday 28 November 2003 4:03:59 am
Hi!
Is it possible (or meaningful) to pass parameters to the template called by node_view_gui?
I mean, I have the following:
{node_view_gui view=line content_node=$Utils:item}
And inside the line template:
<a href={"/"|ezurl} class="white">{attribute_view_gui attribute=$node.data_map.title}</a>
What I would like is to change the value of the class attribute of the <a> tag depending on a parameter passed from the node_view_gui call. I'm aware I could have 2 line templates and simply change the 'view' parameter between the two, but would prefer the first solution.
Thanks in advance.
Marco Zinn
Friday 28 November 2003 6:09:36 am
I suggest, that you use "classification" for this. See http://ez.no/developer/ez_publish_3/documentation/customization/components/datatypes/ezxmltext/classification and http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/override_templatesBased on classification, you can create override template, but I think, that the "classification" text is also available to the template, so you could use one template and decide in this template, what do do.
Marco http://www.hyperroad-design.com
Friday 28 November 2003 7:40:34 am
OK!
I didn't know about classifications, so thank you, but I still don't get it.
The article about classifications seems to talk about class attributes on ez tags, not on the templates.
Could you please provide a clearer example?