I have an issue with version 4.0.4.2 regarding using macros in the
RTE. It simply does not work. instead when I look at the HTML in the
page all i get is:
It seems like the content from the RTE is being fetched using umbraco:item tags in the template section.
I don't think it can handle it when you have macroes in your RTE. Then you need to fetch and render the content by creating a XSLT macro, where you use the mentioned extension.
Unfortunatley this has made no difference and I still get "No macro content available for WYSIWYG editing" appearing in the editor even though I have checked "use in editor" and "render content in editor" - I am now pulling my hair out.
You don't have to use the new XML schema in the new versions of Umbraco. You can still use the old schema by changing the following line in the umbracoSettings.config-file:
<UseLegacyXmlSchema>false</UseLegacyXmlSchema>
If you change this value to true, you ca use the old XML schema :)
Macros not working in RTE
Hi guys,
I have an issue with version 4.0.4.2 regarding using macros in the RTE. It simply does not work. instead when I look at the HTML in the page all i get is:
<?UMBRACO_MACRO macroAlias="CallOut" />
Any help would be much appreciated.
Thanks
Sinky
Hi SinkyPars
Try going to the developer section and find the macro - is the label "use in editor" checked? It should be.
And how do you render the RTE content? Are you using the RenderMacroContent extension to do this?
/Jan
The use in editor is checked Jan :(
I installed the CWS which I belive uses the default RTE. Do I have to install andother extention to get this to work?
Thanks
S
It seems like the content from the RTE is being fetched using umbraco:item tags in the template section.
I don't think it can handle it when you have macroes in your RTE. Then you need to fetch and render the content by creating a XSLT macro, where you use the mentioned extension.
in the XSLT file you can for instance write...
<xsl:value-of select="umbraco.library:RenderMacroContent($currentPage/data [@alias ='bodyText'], $currentPage/@id)" />
This should do the trick for you.
Hope this helps
/Jan
Unfortunatley this has made no difference and I still get "No macro content available for WYSIWYG editing" appearing in the editor even though I have checked "use in editor" and "render content in editor" - I am now pulling my hair out.
Here is my code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:value-of select="umbraco.library:RenderMacroContent(concat('<?','h1','>','SINKY','</','h1','>'),$currentPage/@id )" disable-output-escaping="yes"/>
</xsl:template>
</xsl:stylesheet>
Any help is much appreciated.
Thanks
Sinky
Turns out this is a bug in umbraco itselft - I have reveverted to 4.0.3 and everything seems fine now.
Thanks
S
Happy you got it sorted...any particular reason why you are reverting instead of upgrading? (Just being curious :))
/Jan
I would have to change all my XSL to work with the new schema no?
Thanks
S
Hi Sinky
You don't have to use the new XML schema in the new versions of Umbraco. You can still use the old schema by changing the following line in the umbracoSettings.config-file:
If you change this value to true, you ca use the old XML schema :)
/Kim A
Great, in future I will defo use this,
Thanks for the help.
Sinky
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.