WebSite X5Help Center

 
Karel C.
Karel C.
User

Advanced options . Link file to html code  en

Autor: Karel C.
Besucht 798, Followers 1, Geteilt 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.

Gepostet am
3 ANTWORTEN - 2 NüTZLICH - 1 KORREKT
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

Mehr lesen
Gepostet am von Paul M.
Karel C.
Karel C.
User
Autor

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 ?

Mehr lesen
Gepostet am von Karel C.
Paul M.
Paul M.
Moderator

Yes, if you include them manually.

Mehr lesen
Gepostet am von Paul M.