we:ifWritten print Object ID

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

we:ifWritten print Object ID

Beitragvon Michael_S » So 27. Sep 2015, 20:21

Hi,

When creating an Object from the front end how do I get the Object ID in we:ifWritten?

Michael.
Production Area
London, UK
http://productionarea.com

WBTMagnum
webEdition Partner
webEdition Partner
Beiträge: 1825
Registriert: Di 7. Mär 2006, 16:50
Wohnort: Wien
Kontaktdaten:

Re: we:ifWritten print Object ID

Beitragvon WBTMagnum » So 27. Sep 2015, 22:49

Hi Michael,

I found the following code in our projects:

Code: Alles auswählen

$GLOBALS['we_object']['<formname>']->ID
<formname> is a placeholder for the name of your <we:form> (e.g. edit).

HTH,
Sascha

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

Re: we:ifWritten print Object ID

Beitragvon Michael_S » So 27. Sep 2015, 23:57

Perfect, thanks...

Code: Alles auswählen

$GLOBALS['we_object']['<formname>']->ID
Production Area
London, UK
http://productionarea.com


Zurück zu „DB / Object Module“

Wer ist online?

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