Tuesday, December 16, 2014

Dynamic Language Specific CSS - Design Master Page in 2013

Requirement

Top Level Site collection with master Page and have language specific sites inheriting top level master page.

Problem

How do you include CSS that points to language specific images &
language specific design.

Solution

In HTML master page include the dynamic path using SharePoint tokens. Play attention to opening and closing bracket being used as HTML escape sequence otherwise HTML master page throw error..

<!--SPM:<SharePoint:CssRegistration name="&lt;% $SPUrl:~sitecollection/Style Library/~language/MyPortal/reset.css %&gt;" runat="server" after="SharepointCssFile" />-->

No comments:

Post a Comment