SharePoint 2010 rich text field showing html tags in list views - sharepoint-2010

I have a custom list made up of out of the box SharePoint field types (no custom field types used), but I am using custom new/edit/display form on the list which I have created using application pages.
We want the users of the forms to be able to put rich text formatting on these fields, so I am using the following tags for this....
<SharePoint:InputFormTextBox ID="rteChangeDesc" RichText="true" RichTextMode="FullHtml" runat="server" TextMode="MultiLine" Rows="10" Width="99%" Columns="500"></SharePoint:InputFormTextBox>
This works great on the forms but the list views all show the html tags. I've tried various ways of removing these, including setting the disable-output-escaping="yes" in SharePoint designer, and this hasn't worked.
Currently, I am saving the fields to the list in the code-behind using Server.HtmlEncode(), then using the HTMLDecode to display the contents correctly.
Is there a way of easily removing HTML tags in the view column, without loosing the rich text functionality and tool bar in the forms?
Or can I do something in the code-behind code before saving these to the list that would make them display in view columns but keep the formatting in the form?
Any help appreciated! Thanks!

Go to List Settings and modify the individual columns to show only rich text and not enhanced rich text. It worked for me. I can still include links and pictures and other HTML items but you do not see the code behind it.

Related

#DBLookup and image display on web

I am having issues with displaying an image in a Rich Text field on Notes document on the web. On web form, I have a form with a computed Rich Text field with this logic for the value:
#DbLookup("":"NoCache";"":#DbName;"notices";"americas-en-LoginMsg";"Error_Body";[FailSilent])
The source document is different than the destination document.
When The Web form opens up, only the formatted text displays and the image is just a placeholder with no image displaying. Any ideas on how to get it displayed. Using Domino server vers. 9.0.1.
I placed the image(s) in Resources>Images area of the database and used pass thru HTML on source document to reference it (them): img src="https://something.com/webpages/database.nsf/Buyback.gif?OpenImageResource" (with proper formatting of course).

Force CK editor to save everything as it is

I am using CK editor on a text area. It is working fine but there is one problem and it is when I save content it removes some attributes and doesn't recognize all HTML tags. For example it is removing class attribute from ul li and also doesn't recognize many of HTML tags. Is there any way to modify CK editor so as to make to save everything. Removing it is not an option because CK editor is needed to make some customizations if a user is saving text. Thanks.
This should be the option you are searching for: http://docs.ckeditor.com/#%21/api/CKEDITOR.config-cfg-allowedContent
I couldn't get around this so I found another solution for this which I think might help others in similar situations. I now provide two options (using radio buttons) to users to save their data, through simple text box or through a fully CK editor loaded text box. If a user has already formatted text like containing lots of HTML tags, CSS classes, scripting etc they can simply select simple text box and it will save everything as it is without applying or removing anything. If they need to apply some formatting to simple text they can select loaded text box and format their text.

SharePoint2010 content editor?

I am building a website that will make heavy use of the content editor webparts to allow for content to be added. The drawback to this is that by default the content editor provides a "Rich Text Editor" which is good for adding data but bad because it has the potential to break styling. I have two solutions :
First is to do some coding to somehow have predefined css styles added to the styles menu of the Rich text editor.
Second which should be quicker is to simply disable the Rich text editor i.e disabling the fonts, styles, etc from the Rich Text editor so that users can only enter data and not mess around with the styling.
For soultion two, is this possble and what would be the quickest way to achieve this?
Any assistance is greatly appreciated!
Thanks in advance
The whole point of the rich text editor is to allow the user to enter styled content as they see fit. If you don't want any styling to be applied through the RTE either create style rules in your CSS to overrride anything the user enters or else use content fields based on multiple lines of text rather than rich text.
Core Technology Systems has recently released a how to video on content management on SharePoint 2010. I have included a link to the website which has the link to the video and their YouTube channel.
http://coregb.com/blog/archive/2011/12/01/content-organiser-in-sharepoint2010.aspx

Develop a custom editable Visual Web Part (WebPart) for SharePoint 2010

I want to develop a webpart that allows editors to amend its content using Sharepoint's Ribbon-based formatting controls, and then display that content in a nicely formatted way. The built-in content editor webpart isn't sufficient because I want to wrap the content in hardcoded HTML so as to enforce my site's graphical design. Also, I would like the web part to potentially contain more than one editable area, and the standard Content Editor webpart only has one.
My ideal would be a visual web part with a predefined HTML layout, with some editable "content areas" to allow modification in edit mode. When the webpart is saved it will just render its content areas as HTML. I have tried using <SharePoint:RichTextField> blocks in a visual web part ascx template but I don't think this is correct. Can anyone give advice?
Okay, nobody had an answer so I had to do it myself :)
http://zootfroot.blogspot.com/2010/09/develop-custom-editable-visual-web-part.html

Drupal print module: controlling layout in PDF files?

Using the print module and tcpdf I'm trying to fix the layout of the PDF files for a specific content type. I'm messing around in the tpl.php file and can't find a way to modify individual fields. There's just the massive $print['content'] variable that contains all of the page content. So, is there a way to access each field?
Basically I want full control over how fields (their labels, data, etc) are displayed. Currently, they are displayed like inline elements, one after the other. This looks pretty ugly.
When you edit a "View" you will notice a link that says "Theme: Information" it retrieves all suggested tpl's for the whole $output and also for each of the fields.