SharePointCommunity
Die deutschsprachige Community für SharePoint, Microsoft 365, Teams, Yammer und mit Azure
Restrict the Ribbon Text Styles in PublishingPages

Blogs

Oliver Wirkus

Syndication

Certifications

Web 2.0

http://smits-net.de/img/linkedin_button.gif

XING

http://i80.photobucket.com/albums/j191/mikesamerica/twitter_button_zpsee74f711.png

 

 Add to Technorati Favorites

 

 Delicious Bookmark this on Delicious

 

  Locations of visitors to this page

 

With SharePoint you can not only bring lists and libraries to an enterprise’s intranet. Sometimes there is the requirement to bring an internal newspaper (that has been printed on paper for every employee before) to the corporate intranet. To do this a custom page layout based on the standard article page is a good approach. Like the real newspaper before the new intranet newspaper should also have a determined design. But not only the design is important. The use of text styles (like fonts, font sizes and font colors) need to be restricted to ensure that every issue (or edition) looks very similar to the ones published before and meets the corporate standards.

To accomplish this the custom page layout should use RichHtmlFields. With these RichHtmlFields placed in a custom page layout some of the layout restrictions can be achieved, because the RichHtmlField control offers several properties that can be used to influence the items shown in the ribbon. I just took some of these properties, added them one by one to a RichHtmlField placed in a custom page layout and took screenshots that show how these properties influence parts of the ribbon.

 

This is how the ribbon looks like when a user clicks on a RichHtmlField (PublishingWebControls) – without any additional properties:

image

 

AllowFontColorsMenu="false":

image

 

AllowFonts="false":

image

 

AllowFontSizesMenu="false":

image

 

AllowHtmlSourceEditing="false":

image

 

AllowHyperlinks="false":

image

 

AllowImages="false":

image

 

AllowImageStyles="false":

image

 

AllowInsert="false":

image

 

AllowParagraphFormatting="false":

image

 

AllowStyles="false":

image

 

AllowTextMarkup="false":

image

 

AllowFontCustomColors="false":

image

 

AllowResuableContent=”false”:

image

 

I just tookpicked a few of the properties offered by a RichHtmlField. Just click on this link to get a complete list of all properties. Although this MSDN Article does not mention SharePoint 2013, RichHtmlFields can be used with SharePoint 2013 too. The use of RichHtmlFields with SharePoint 2013 is shown here: http://msdn.microsoft.com/en-us/library/dn205272.aspx

Thanks to Anton Vishnyakov for pointing me on these properties.

 

TweetThisButton


Bereitgestellt 20 Mrz 2014 20:00 von Oliver Wirkus