Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.


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

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 323
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 [
|
]
 
 

Smoketest For nightly_2008-07-04 by Visitor - Fri @ 01:37am

Re: News Addon? by knowmad - Thu @ 06:04pm

Re: News Addon? by bepo - Thu @ 08:54am

Re: News Addon? by bepo - Thu @ 03:35am

Smoketest For nightly_2008-07-03 by Visitor - Thu @ 01:37am

Thingy Reporting (pt 2) by knowmad - Wed @ 05:37pm

Re: News Addon? by knowmad - Wed @ 05:12pm

spell checker and tinymce by elnino - Wed @ 04:50pm

Re: WebGUI works on perl 5.10 by knowmad - Wed @ 04:41pm

Re: how the cost installing WebGUI ?? by baylink - Wed @ 12:19pm

Re: News Addon? by bepo - Wed @ 07:38am

Re: News Addon? by bepo - Wed @ 03:38am

Re: External Links by bepo - Wed @ 03:30am