|
Previous
·
Next
|
arjan
|
Date: 4/13/2008 4:20 pm · Subject: making a macro aware of the assetId of the Wobject in which it is
called · Rating: 0
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
|
Date: 4/13/2008 4:32 pm · Subject: Re: making a macro aware of the assetId of the Wobject in which it is · Rating: 0
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 [ | ]
|
| |
|
|
Re: Bilingualism by Klaus - Fri @ 07:34am Re: Bilingualism by bepo - Fri @ 06:00am Re: Bilingualism by fathertorque - Thu @ 05:58am Re: Bilingualism by Klaus - Wed @ 01:29pm
|