Can I use a value from one template in another template?

Can I use a value from one template in another template?

Monday 05 May 2003 2:53:57 pm - 2 replies

Author Message

Vivienne van Velzen

Tuesday 06 May 2003 1:22:01 am

You can pass a value from one template to the other like this:

{* I'm in first.tpl, calling a view second.tpl *}
{node_view_gui view=second content_node=$node myvalue=$myvalue}
{* /calling *}

Now you can use the variable myvalue in second.tpl.
Hope this helps,

Vivienne

Ricardo Lindooren

Tuesday 06 May 2003 3:49:40 am

Vivienne, thank you very much for your help.

Your solution does answer my question, but unfortunately I can't use it.
In my case the second template is opened after clicking on the 'form submit button'.

That's also the reason why I tried to pass my value trough a hidden form field.

Can you (or someone else) tell me if this is possible?

Thanks,

Ricardo Lindooren

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.