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 166
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




Extending TinyMCE by philadev - Fri @ 11:31am

Re: Bilingualism by Klaus - Fri @ 07:34am

Re: Bilingualism by bepo - Fri @ 06:00am

Smoketest For nightly_2008-05-16 by Visitor - Fri @ 12:52am

C2: JSON collateral rewrite by colink - Fri @ 12:00am

Smoke Test for SVN (2008-05-16) by botaction - Thu @ 11:48pm

Recommendation for web chat system? by bernd - Thu @ 02:27pm

Re: InnoDB in WRE by BNC - Thu @ 09:56am

Re: Bilingualism by fathertorque - Thu @ 05:58am

Smoketest For nightly_2008-05-15 by Visitor - Thu @ 12:51am

Smoke Test for SVN (2008-05-15) by botaction - Wed @ 11:48pm

Re: The debian openssl/openssh bug by patspam - Wed @ 08:50pm

The debian openssl/openssh bug by patspam - Wed @ 07:00pm

Re: Bilingualism by Klaus - Wed @ 01:29pm