locked
Unable to include site collection relative javascript file near the closing body tag in design file RRS feed

  • Question

  • Hello knowledgeable experts,

    In our project we are building the master page using the design file  CustomMaster.html in it, i have a placeholder created as follows:

    <!--MS:<asp:ContentPlaceHolder id="PlaceHolderUtilityContent" runat="server">-->
        
    <!--ME:</asp:ContentPlaceHolder>-->

    Inside i'd like to create the script tag that includes the site collection relative javascript file.

    In the past this worked perfect in the .master files <script type="text/javascript" src="<asp:Literal runat='server' Text='<%$ SPUrl:~sitecollection/Style Library/CityPhx/custom.js%>' />">

    But i have trouble finding the combination of <!-- --> and MS/ME markup to ensure that the script tag is literally processed by the design manager while the literal control is still emitted properly.  The closest i get when i wrap the following in the <!-- --> tags but it emits those around the script file, and i think the CDATA wrapper inside the <script></script>.

    PS: ScriptLink is not an option b/c it includes the JavaScript in the head section.

    Wednesday, March 12, 2014 7:38 AM

Answers