Jump to content

Long/short descriptions and HTML


fldavidallsop
 Share

Recommended Posts

As far as I can see HTML is stripped from the output for the standard product description and HTML is allowed for a short description - why is this case? If this is intentional why include the WYSIWYG editor for the long description field?

At present if someone wishes to enter HTML in the product description (which is quite common for bold, colours, etc) then they must use the optional short description.

Link to comment
Share on other sites

The "rich text" short description is given to the template system and is available for use. However, keep in mind when viewing a Category page, the decision to strip HTML tags from the short description is a "skin-based" decision.

If there isn't a short description, then the "rich text" long description is processed by stripping HTML tags before assigning it to the short description and giving the resulting short description to the template system.

(This is for CC608.)

Link to comment
Share on other sites

  • 4 weeks later...

Just to check, if someone wants to enter a product description with HTML formatting (like most people do) they should be populating the short description and leaving the main product description blank?

Seems strange as most people use the main product description textarea and the expected result would be the entered content (plain or rich text) appearing on the product page.

I just want to confirm this before updating documentation related to product descriptions.

Edited by fldavidallsop
Link to comment
Share on other sites

Just to check, if someone wants to enter a product description with HTML formatting (like most people do) they should be populating the short description and leaving the main product description blank?

No, that is not how it should work.  Brian's explanation of how the short description should work above is correct and the main product description should always retain html formatting as this is extensively used

Ian

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...