Hi,
I'm making a new newsv2 list-template. In that template I'm including some javascript-files. However I can't set the relative path for it, and only by typing the absolute path is it possible to use the javascript files. So I need a bit of help to type in the relative path.
Here's the structure:
underside (I'm using the newsv2-list from within the underside.html-template)
newsv2
* list
* Google_map.html (list-template)
assets (folder, where I'm having the javascript for the list template)
* googlemaps
* Maps
* clustermarker.js (JS file, that I'm trying to link to in my Google_map.html -- file)
Relative path:
I'm trying to link the clustermarker.js by adding this link within the file google-map.html:
<script src="assets/googlemaps/Maps/clustermarker.js" type="text/javascript"></script>
Unfortunately the browser can't find the file. In the parsed underside.html I can see a difference between this link and other links, that I add directly in the underside.html.
<script src="/Files/Templates/Designs/standard_responsiv/includes/nav/meanmenu/script.js"></script> <script src="assets/googlemaps/Maps/markerclusterer.js" type="text/javascript"></script>
This snippet is taking from the source code and shows, that in the first script there is being addded "/Files/Templates/Designs/standard_responsiv" to the beginning of the source. This doesn't happen to the markerclusterer.js.
So my question is, how can I make a relative path to a script within a list template inside a module (in this case newsv2).
Regards Martin