I am using Base to auto generate and send an email which is sent to our members. The Umbraco content page (which the email is generated from) has a Macro which needs a nodeid so it can generate some content :)
Ok, from your base, which is server side, you're fetching the content of the page (from which the email is generated from) and use that to send email to your user? If so, can't you use /content-page?nodeId=id (where id is passed to your base method as a param) and make sure your macro gets the querystring parameter using the syntax as explained here. Or, from within the xslt, get the querystring value using umbraco.library:RequestString('key')?
Base and Macros
If i have http://www.myawesomesite.com/base/dosomething/11
How do I get the value 11 in a macro??
Can you elaborate, not sure what you're trying to do. Why do you need to pass this value 11 to a macro?
Looking forward to your info.
Cheers,
/Dirk
11 In this case is a nodeid. I want to do something like <xsl:variable name="compNode" select="umbraco.library:GetXmlNodeById(11)" /> in my macro.
Ideally I would just use a querystring but base don't work with querystrings.
Guessed that was a node id, but still have troubles understanding why you need to pass that to a macro from your base method? Any info on that?
Cheers,
/Dirk
I am using Base to auto generate and send an email which is sent to our members. The Umbraco content page (which the email is generated from) has a Macro which needs a nodeid so it can generate some content :)
Ok, from your base, which is server side, you're fetching the content of the page (from which the email is generated from) and use that to send email to your user? If so, can't you use /content-page?nodeId=id (where id is passed to your base method as a param) and make sure your macro gets the querystring parameter using the syntax as explained here. Or, from within the xslt, get the querystring value using umbraco.library:RequestString('key')?
/Dirk
Hmmm I guess so... But then I need to add code to my template or content page to cover the business logic of sending the email.
is working on a reply...