Quantcast
Channel: SharePoint 2013 - Using SharePoint Designer, InfoPath and Other Customizations forum
Viewing all articles
Browse latest Browse all 9368

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 9368


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>