I'm using xslt to create a navigation on my site based off items in my content tree. My website is physically distributed with the umbraco portion handling authentication and some other functions, and then access to some other applications are grafted together with mod_proxy, with a shared session database for passing things around. I was wondering if there was a way that I could capture the output of my xslt that generates my navigation menu so that I could persist it to my session, and then display the same menu on my non-umbraco application. Basically looking to see if there is a way that some code in my umbraco templates could be used to call the navigation menu macro and get its results. But I didn't know if this was matter of the asp.net code in the template running before the macro could be run therefore not making it possible to capture the results of the macro.
You should be able to use the umbraco.library:RenderMacroContent() function
to do that - it has a pretty arcane syntax for specifying the macro, and you need
to specify a currentPage id but I guess it's possible.
Read the results of a macro into an asp variable
I'm using xslt to create a navigation on my site based off items in my content tree. My website is physically distributed with the umbraco portion handling authentication and some other functions, and then access to some other applications are grafted together with mod_proxy, with a shared session database for passing things around. I was wondering if there was a way that I could capture the output of my xslt that generates my navigation menu so that I could persist it to my session, and then display the same menu on my non-umbraco application. Basically looking to see if there is a way that some code in my umbraco templates could be used to call the navigation menu macro and get its results. But I didn't know if this was matter of the asp.net code in the template running before the macro could be run therefore not making it possible to capture the results of the macro.
Hi Scooter,
You should be able to use the
umbraco.library:RenderMacroContent()
function to do that - it has a pretty arcane syntax for specifying the macro, and you need to specify a currentPage id but I guess it's possible./Chriztian
Just what I needed. Thanks!
is working on a reply...