setVar from global to self

basic functions and we:tags
Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

setVar from global to self

Beitragvon Michael_S » Mo 21. Feb 2011, 15:20

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.
Production Area
London, UK
http://productionarea.com

Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

Fixed: setVar from global to self

Beitragvon Michael_S » Mo 21. Feb 2011, 16:12

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" />
Production Area
London, UK
http://productionarea.com


Zurück zu „Creating templates“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 6 Gäste