Seite 1 von 1

setVar from global to self

Verfasst: Mo 21. Feb 2011, 15:20
von Michael_S
Hi,

I'm trying to use we:setVar to copy a variable from global to a we:input field in the document (self), the we:setVar works and I can display the variable using we:var type=document but I can't get the variable to show in the document input field?

How do I copy a external variable from Global to a we:input field?

Code: Alles auswählen

<we:setVar to="self" nameto="Video_Thumb" from="global" namefrom="vth" />
<we:input size="80" type="text" name="Video_Thumb" html="true" />
Thanks,

Michael.

Fixed: setVar from global to self

Verfasst: Mo 21. Feb 2011, 16:12
von Michael_S
Sorry, a simple error on the page, the php code was after the we:setVar.

Code: Alles auswählen

<?php // Custom php code ?>
<we:setVar to="self" nameto="Video_Thumb" from="global" namefrom="vth" />
<we:input size="80" type="text" name="Video_Thumb" html="true" />