getting a webedition field as a variable

basic functions and we:tags
ikbenivo

getting a webedition field as a variable

Beitragvon ikbenivo » Mo 30. Jan 2006, 13:11

I have the following listview,

Code: Alles auswählen

<we:listview type="object" classid="9" rows="1" order="datum" desc="true">
<we:repeat>
<a href="mypage.php#<we:field name="naam" type="text"/>" class="lijstonderdeel"><we:field name="kop" type="text"/></a>


</we:repeat>
</we:listview>
I'd like to have the content of the field "kop" (<we:field name="kop" type="text"/>) as a variable (so I can use it in flash)

I've managed to get content from ordinary input fields into flash, with the following code, but I can't figure out how to get the field "kop" out of the listview.

Code: Alles auswählen

<we:input type="text" name="veld2">

Code: Alles auswählen

<?php
$var2= $GLOBALS["we_doc"]->getElement("veld2");
?>
Any ideas?
Thanks in advance!

sticky
Junior Member
Beiträge: 5
Registriert: Mi 3. Mär 2004, 17:01

Beitragvon sticky » Mo 30. Jan 2006, 14:35

Hi,

You might want to check out the post a few below yours...

http://forum.webedition.de/showthread.php?t=10257

Looks like you need to use something like this....

$ergebnis = $GLOBALS["lv"]->f("WE_TEXT");

ikbenivo

Beitragvon ikbenivo » Mo 30. Jan 2006, 14:52

thanks!

Code: Alles auswählen

<we:listview type="object" classid="9" rows="1" order="datum" desc="true">
<we:repeat>
<?php 
$ergebnis = $GLOBALS["lv"]->f("WE_TEXT"); 
?>
</we:repeat>
</we:listview>
This gives me the object title.
Any idea how to change this in a specific field?
(is there some kind of overview of all these 'Globals' stuff?)

ikbenivo

Beitragvon ikbenivo » Mo 30. Jan 2006, 15:13

I found it:

Code: Alles auswählen

<we:listview type="object" classid="9" rows="1" order="datum" desc="true">
<we:repeat>
<?php 
$veld1 = $GLOBALS["lv"]->f("kop"); 
?>
</we:repeat>
</we:listview>
Thanks for your help


Zurück zu „Creating templates“

Wer ist online?

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