Click here to register.
      
PBWG Banner


     Discuss > WebGUI Dev

making a macro aware of the assetId of the Wobject in which it is called

User arjan
Date 4/13/2008 4:20 pm
Views 434
Rating 0    Rate [
|
]
Previous · Next
User Message
arjan
Hi all,

If I put a macro in the template of a wobject, say a poll, or in one of
the values, can you retrieve the assetId of this poll from within the
macro?

(Of course you could make this a parameter when you call the macro, but
perhaps you don't need to?)

Kind regards,
Arjan.



Back to Top
Rate [
|
]
 
 
preaction

Short answer: No. It will need to be a parameter.

You can use $session->asset->getId if and only if the Poll asset is the one whose URL is in the address bar.

So if the Poll is part of a Layout, that above will get the assetId of the Layout, not the Poll.



Back to Top
Rate [
|
]
 
 
     Discuss > WebGUI Dev




Reply to Rogier by perlDreamer - Fri @ 10:55am

OReilly by Albert2 - Fri @ 09:09am

Glad to be here by patspam - Fri @ 01:59am

Re: WRE install on Ubuntu by SteveD - Fri @ 01:56am

Smoketest For nightly_2008-09-05 by Visitor - Fri @ 01:46am

Re: WRE install on Ubuntu by knowmad - Thu @ 07:37pm

Re: New Default Templates: community input by patspam - Thu @ 06:22pm

Re: WebGUI Resending mails by JT - Thu @ 05:27pm

WebGUI Resending mails by arjan - Thu @ 04:55pm

Re: Config File Changes by JT - Thu @ 03:40pm

Re: RSVP function in WebGUI? by knowmad - Thu @ 03:25pm

Re: Config File Changes by knowmad - Thu @ 03:11pm

Re: Config File Changes by JT - Thu @ 02:30pm

RSVP function in WebGUI? by pvanthony - Thu @ 02:13pm