WebSite X5Help Center

 
Karel C.
Karel C.
User

Advanced options . Link file to html code  en

Author: Karel C.
Visited 709, Followers 1, Shared 0  

In advanced settings (step 4), section Statistics, SEO and Code, you can link files to html code or simply insert them into a chosen directory. 

I am not sure about the purpose of that flag 'link file (only .js or .css file) . Whether I flag it or not, as long as I specify the right path in my html or javascript, it will find this file. Guess I am missing something. See attached file.

Posted on the
3 ANSWERS - 2 USEFUL - 1 CORRECT
Paul M.
Paul M.
Moderator

Hello Karel,

Your screenshot shows that you are linking an image file (.gif).  The checkbox you refer to has no effect on image files.  It works only when used in conjuction with JavaScript (.js) and Cascading Style Sheets (.css)

When linking to one of those two file formats checking the box will insert a line in the HEAD of the web page similar to one of the following:

<script type="text/javascript" src="files/linked_file.js"></script>

<link rel="stylesheet" type="text/css" href="files/linked_file.css" media="screen, print" />

This line is required in order for these types of files to operate correctly.

Kind regards,

Paul

Read more
Posted on the from Paul M.
Karel C.
Karel C.
User
Author

Thanks Paul, 

Understood. My point was: if I include those tags in my html code, I don't have to flag the link button. Is that correct ?

Read more
Posted on the from Karel C.
Paul M.
Paul M.
Moderator

Yes, if you include them manually.

Read more
Posted on the from Paul M.