Current Articles | Archives | Search 01·042017Fixing DNN StyleSheet load order using StyleHelper 02.09.05 By: One of the things that annoy me are DNN Extensions that don't comply with the Default DNN load order of Style Sheets. http://www.dnnsoftware.com/…/dotnetnuke-stylesheets-explain… This means NO Style-sheets should be loaded after Skin.css and Portal.css. The reason for this is that it allows us to overrule the design. Unfortunately there are a lot of developers and even DNN core components that ignore this rule. I have tried to move these Style-sheets with our the StyleHelper, but that did not work for all style sheets (it depends on when they get injected). Today, I realized that there's a much smarter solution for this. I introduce to you the "ForceSkinCssOrder" attribute in the 02.09.05 release of the Stylehelper. It will set the priority of skin.css to 1000 and portal.css to 1001, moving then all the way to the end of the head, even if a developer does not care about style sheet order. Download:https://www.40fingers.net/Products/DNN-Stylehelper Categories: Skins and Templates
Code (5)DNN Applications (3)Extension Development (12)General (18)Search Engine Optimalization (SEO) (3)Site Administration (11)Skins and Templates (28)..Demo Skins (4)Windows Server (3)
June 2021 (2)February 2021 (1)October 2020 (1)May 2020 (1)March 2020 (1)September 2019 (1)July 2019 (1)February 2019 (1)January 2019 (1)December 2018 (1)November 2018 (1)October 2018 (1)September 2018 (1)August 2018 (1)June 2018 (1)December 2017 (1)November 2017 (1)June 2017 (2)April 2017 (1)November 2016 (1)July 2016 (1)June 2016 (1)February 2015 (1)May 2013 (1)April 2013 (2)February 2013 (1)November 2012 (1)September 2012 (2)June 2012 (2)January 2012 (2)December 2011 (1)September 2011 (1)June 2011 (1)May 2011 (1)April 2011 (3)March 2011 (1)November 2010 (1)October 2010 (5)September 2010 (3)July 2010 (1)April 2010 (1)March 2010 (3)December 2009 (3)