I have some content (using Blog4Umbraco) that is editable with the richText editor, and into which users can insert a macro (the Indsæt video macro). If I render out the content via template, the macro is interpretted correctly and the video shows up in the blog posting.
I also have an XSLT / Macro (called blogListPostsWithOneMain) with the following:
When the template renders, pulling in this macro, which in turn pulls in the content 'summaryMedium' (that itself contains a macro), the resulting output is invalid. It contains something along the lines of:
Also, I looked briefly at RenderMacroContent at http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/RenderMacroContent but my understanding was that this was for explicitly rendering a macro (ie you need to provide a macro to render) as opposed to rendering an XML node that may or may not contain a macro. Maybe I'm wrong? And, just because, I'm including my full XSLT below. look for "<!-- PROBLEM AREA -->"
Apologies! I should have known better, as I ran up against this very problem myself when using my own insert video package. As far as I can remember, I had to find a way to get the rich text editor content back in the templates and out of xslt...
Macro in Content in XSLT
I have some content (using Blog4Umbraco) that is editable with the richText editor, and into which users can insert a macro (the Indsæt video macro). If I render out the content via template, the macro is interpretted correctly and the video shows up in the blog posting.
I also have an XSLT / Macro (called blogListPostsWithOneMain) with the following:
When the template renders, pulling in this macro, which in turn pulls in the content 'summaryMedium' (that itself contains a macro), the resulting output is invalid. It contains something along the lines of:
(ie it looks like it's just pulling the macro reference from the content, and not rendering it)
Is there a way to get this internal macro to render?
thanks in advance
Jonathan
Hi Jonathan
Try this
Dan
Hi Dan
Thanks for that. My updated XSLT saves fine in umbraco (no validation errors), but when outputting on the web page returns:
Error parsing XSLT file: \xslt\BlogListPostsWithOneMain.xslt
Also, I looked briefly at RenderMacroContent at http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/RenderMacroContent but my understanding was that this was for explicitly rendering a macro (ie you need to provide a macro to render) as opposed to rendering an XML node that may or may not contain a macro. Maybe I'm wrong? And, just because, I'm including my full XSLT below. look for "<!-- PROBLEM AREA -->"
Thanks
Jonathan
Apologies! I should have known better, as I ran up against this very problem myself when using my own insert video package. As far as I can remember, I had to find a way to get the rich text editor content back in the templates and out of xslt...
is working on a reply...