sharepoint 2010 - Target js files for specific version of IE with ~sitecollection token -
i working on sharepoint 2010 publishing site, have make fixes internet explorer 7 , 8, using following tags target ie version.
<!--[if lt ie 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="/_catalogs/masterpage/mysite/scripts/respond.min.js"></script> <link href="/_catalogs/masterpage/mysite/css/iefix.css" rel="stylesheet" type="text/css"> <![endif]-->
and working fine want add "~sitecollection" token make sure works under site collection url, have used following tag
<!--[if lt ie 9]> <sharepoint:scriptlink language="javascript" name="~sitecollection/_catalogs/masterpage/mysite/scripts/respond.min.js" ondemand="false" runat="server" localizable="false"/> <![endif]-->
but looks sharepoint control not work if condition, can see javascript file in version of ie, "sharepoint:cssregistration" has conditional expression property, tehre equiveloent property "sharepoint:scriptlink"
Comments
Post a Comment