Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Displaying Resuable Content Programmatically

  Asked By: Rikki    Date: Feb 26    Category: Sharepoint    Views: 1882

I've created a custom layouts page which displays items (resulting from an SPQuery). In this page, we access values of a list which has a column called "News Article Details", of type "PublishingHTML". This field type, of course, enables users to add Resuable Content.

However, when I display the value of the field, the reusable content is moved to the top of the column, and displayed as a hyperlink <a href="<reusable content list URL>">a</a>
--No matter what the content of the RC section is, it will always display as "a" (hyperlinked).
--It also appears this way on my list's "AllItems.aspx" page.
--It does not appear this way on the list item's DispForm.aspx page.

Anyone see this before?



1 Answer Found

Answer #1    Answered By: Kabeer Karkare     Answered On: Feb 26

OK here goes:


This will return you properly formatted HTML for all content  (including any reusable  content) within the provided string.

Didn't find what you were looking for? Find more on Displaying Resuable Content Programmatically Or get search suggestion and latest updates.