Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Danzig 32 posts 52 karma points
    May 12, 2011 @ 13:11
    Danzig
    0

    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!

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 12, 2011 @ 15:31
    Søren Spelling Lund
    0

    In 1.5 you can modify the definition for categories and add a rich text field on the category.

  • Danzig 32 posts 52 karma points
    May 13, 2011 @ 09:44
    Danzig
    0

    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.

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 13, 2011 @ 11:51
    Søren Spelling Lund
    0
    <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

Please Sign in or register to post replies

Write your reply to:

Draft