I'm not quite sure I totally understand your question, but when you install Umbraco there's only one RTE datatype. This will give you en editor based on TinyMCE. You can use this data type all around you doc types.
Could you maybe tell us a little about you set up. Or maybe show us some screenshots of where you are using the two different data types in your document types? Or if you have some code from your macro that you'd like to show maybe someone in here can find some issues with this if there is any.
The bodyText is just an alias that you are giving to the property on your document type. But I think I know what you mean anyway :)
Are you rendering the two richtext editors the same way on your frontpage? I mean, are you rendering both of the properties through an umbraco:item, through XSLT, Razor etc. Could you show us the code where you render both of the RTE's on your frontend?
And just to be sure, it's the same macro that you are inserting into the two editors right?
Could you please provide us with the XSLT samples that your macroes are based on? (Or razor if that is what you're using).
I understand you're a bit confused. So I'll try to explain this thorughly.
There is no default editor in Umbraco called "bodyText".
I suppose you have installed a theme where there is a property set puts an rich text editor on your node. This property is given a name and an alias on the document type, where the property is also selected. The alias on your document type is probably "bodyText" and the datatype is set to use the rich text editor datatype.
In another document type you can create a field that is also based on the rich text editor datatype but is given another alias like "sidebarText" for instance.
You fetch the content by calling the "alias" in your xslt/razor.
You can say that the "Rich text editor" is a default datatype that is installed in umbraco by default along with other datatypes like "true/false","content picker" etc. - If you need another instance of a rich text editor your can create another one by going to the developer section and right click the "datatypes" folder to create a new datatype. Then you can select, which of the already installed datatypes you want to create a new instance of. This can be usable if you for instance need to have a rich text editor that fits the with of your sidebar on the homepage to make the user experience in the back office better.
Now...the above output you receive could seem like the macro has been created but is not referenced to an XSLT file perhaps?
Otherwise as mentioned earlier please provide us with some XSLT code and perhaps some screendumps of the document types you have setup so we can see the alias.
I am then trying to input my other Macro insite my RTE that is contained within my Macro above.
So I think it is a Macro trying to render another Macro. Do you get what I am trying to say?
Kind of confusing but I think since I am not using umbraco:Item and then trying to render the Macro in the RTE and actually making my RTE property in the XSLT and then inputting my other Macro into the RTE that it is trying to render a Macro from a Macro.
Yeah, that could easily be the problem. Especially if you are just using a value-of to render your second RTE. I think you should take a look at the RenderMacroContent-extension. Something like this:
Kim that is the solution. Thank you very much. That is a bit confusing but that is what was happening. The Macro was trying to render a Macro which is not possible. Unless, it looks like, using the
What is the Difference between bodyText RTE and RTE datatype?
What is the Difference between bodyText RTE and RTE datatype?
I can get my macro to render in the default bodyText RTE but not in another RTE set up in a doctype.
What is the issue? All I get in the HTML output is
<?UMBRACO_MACRO macroAlias="myMacroName" />
What is the difference between the way the Umbraco bodyText RTE works and the way another property using the RTE works?
Hi Carlos
I'm not quite sure I totally understand your question, but when you install Umbraco there's only one RTE datatype. This will give you en editor based on TinyMCE. You can use this data type all around you doc types.
Could you maybe tell us a little about you set up. Or maybe show us some screenshots of where you are using the two different data types in your document types? Or if you have some code from your macro that you'd like to show maybe someone in here can find some issues with this if there is any.
/Kim Andersen
Ok so the default editor in Umbraco is bodyText. Right?
I have another property that uses the RTE datatype that renders text in another area of the page.
I made an XSLT file and had Umbraco make the Macro.
I inserted the Macro in the RTE of the bodyText and the Macro rendered on the page.
I inserted the Macro into the RTE in the other property and the Macro did NOT render on the page.
I don't know why it rendered when I put it in the default Umbraco bodyText property and not in the other property RTE.
Hi again Carlos.
The bodyText is just an alias that you are giving to the property on your document type. But I think I know what you mean anyway :)
Are you rendering the two richtext editors the same way on your frontpage? I mean, are you rendering both of the properties through an umbraco:item, through XSLT, Razor etc. Could you show us the code where you render both of the RTE's on your frontend?
And just to be sure, it's the same macro that you are inserting into the two editors right?
/Kim A
Kim,
I am rendering my bodyText through umbraco:Item in the template and the other property though an XSLT file and inputting the Macro into the template.
That is the issue isn't it? It is a Macro trying to render a Macro.
Hi Carlos
Could you please provide us with the XSLT samples that your macroes are based on? (Or razor if that is what you're using).
I understand you're a bit confused. So I'll try to explain this thorughly.
There is no default editor in Umbraco called "bodyText".
I suppose you have installed a theme where there is a property set puts an rich text editor on your node. This property is given a name and an alias on the document type, where the property is also selected. The alias on your document type is probably "bodyText" and the datatype is set to use the rich text editor datatype.
In another document type you can create a field that is also based on the rich text editor datatype but is given another alias like "sidebarText" for instance.
You fetch the content by calling the "alias" in your xslt/razor.
You can say that the "Rich text editor" is a default datatype that is installed in umbraco by default along with other datatypes like "true/false","content picker" etc. - If you need another instance of a rich text editor your can create another one by going to the developer section and right click the "datatypes" folder to create a new datatype. Then you can select, which of the already installed datatypes you want to create a new instance of. This can be usable if you for instance need to have a rich text editor that fits the with of your sidebar on the homepage to make the user experience in the back office better.
Now...the above output you receive could seem like the macro has been created but is not referenced to an XSLT file perhaps?
Otherwise as mentioned earlier please provide us with some XSLT code and perhaps some screendumps of the document types you have setup so we can see the alias.
Hope this helps a bit :-)
/Jan
Jan, I just realized that I am trying to render a Macro inside of another Macro.
I have an XSLT file that has a matching Macro, I am outputting the Macro into the template directly. This is where my content from my RTE is held.
I then have another XSLT file that generates its own matching Macro and am trying to put Macro in my RTE that is outputted into the template.
Kind of get that?
Here is my macro in my template within this MinisitePromoBox macro contains my RTE.
<umbraco:Macro Alias="MinisitePromoBox" runat="server"></umbraco:Macro>
I am then trying to input my other Macro insite my RTE that is contained within my Macro above.
So I think it is a Macro trying to render another Macro. Do you get what I am trying to say?
Kind of confusing but I think since I am not using umbraco:Item and then trying to render the Macro in the RTE and actually making my RTE property in the XSLT and then inputting my other Macro into the RTE that it is trying to render a Macro from a Macro.
Hi Carlos
I must admit that I'm a bit confused.
But rendering a macro in a macro is not possible to do.
It's sound a bit complex? Is there not another way you can handle this perhaps?
/Jan
Hi again Carlos
Yeah, that could easily be the problem. Especially if you are just using a value-of to render your second RTE. I think you should take a look at the RenderMacroContent-extension. Something like this:
Could you give that one a try?
/Kim A
Kim that is the solution. Thank you very much. That is a bit confusing but that is what was happening. The Macro was trying to render a Macro which is not possible. Unless, it looks like, using the
umbraco.library:RenderMacroContent
Thanks Kim, your help is MUCH appreciated.
Great to hear Carlos! Just needed to understand what you where trying to do to give you the best help :)
And I'm glad we got things solved now.
/Kim A
is working on a reply...