Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I'd like the category description field to be a rich text editor as opposed to the current plain text one.
How would I go about changing that?
Thanks!
In 1.5 you can modify the definition for categories and add a rich text field on the category.
Thanks Soren. I've added a rich text description field called category_richtext_description to the default category definition as you describe. I've added some content for a category but I can't get it to display.
In Category[XSLT].xslt I tried changing...
<xsl:value-of select="$category/category/@category" disable-output-escaping="yes"></xsl:value-of>
to
<xsl:value-of select="$category/category/@category_richtext_description" disable-output-escaping="yes"></xsl:value-of>
...but that didn't work. What's the syntax for outputting the rich text field?
Many thanks.
<category index="0" id="67" parentCategoryId="" parentCategoryName="" contentId="" name="Software" displayName="Software" displayOnSite="True" description="" image="" definition="Default Category Definition"> <properties> <MyRichTextProp cultureCode="en-US" dataType="RichText">123</MyRichTextProp> <Prop1 cultureCode="" dataType="ShortText"></Prop1> <Prop2 cultureCode="" dataType="ShortText"></Prop2> </properties> </category>'
So you would $category/category/properties/MyRichTextProp
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Rich text editor for Category descriptions
Hi
I'd like the category description field to be a rich text editor as opposed to the current plain text one.
How would I go about changing that?
Thanks!
In 1.5 you can modify the definition for categories and add a rich text field on the category.
Thanks Soren. I've added a rich text description field called category_richtext_description to the default category definition as you describe. I've added some content for a category but I can't get it to display.
In Category[XSLT].xslt I tried changing...
<xsl:value-of select="$category/category/@category" disable-output-escaping="yes"></xsl:value-of>
to
<xsl:value-of select="$category/category/@category_richtext_description" disable-output-escaping="yes"></xsl:value-of>
...but that didn't work. What's the syntax for outputting the rich text field?
Many thanks.
So you would $category/category/properties/MyRichTextProp
is working on a reply...