2B9A75E094B1481CA4C981324462D53F
  • Internet
  • 25.10.2017
  • EN

Simply RedDot: "Managing JS CSS XML as content classes in 10.1"

written by Jian Huang, 8. December 2011
 

Problem

Management Server treats all page instances as HTML pages and like to search for <head> and <body> tag to inject javascript code into them.  The issue is most noticeable in version 10.1.

If <head> and <body> tag are not found, MS injects those tags along with javascript snippets to the top of the page.

For CSS and JS pages managed in MS and linked via anchor, this invalidates the CSS and JS, hence user would notice some CSS styles not being applied, and JS library/function not loaded.
 

Solution

Include this code at the bottom of any CSS or JS content class that have page instances referenced/connected via anchor in NOT Publish Mode to avoid invalidation.

/** <html><he<!IoRangeNoRedDotMode><!/IoRangeNoRedDotMode>ad></head><body></body></html> **/

 


Source: Managing JS CSS XML as content classes in 10.1

© copyright 2011 by Jian Huang

       

Downloads

 

QuickLinks

 

Channel