WebSite X5Help Center

 
Karel C.
Karel C.
User

Advanced options . Link file to html code  en

Autore: Karel C.
Visite 789, Followers 1, Condiviso 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.

Postato il
3 RISPOSTE - 2 UTILI - 1 CORRETTO
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

Leggi di più
Postato il da Paul M.
Karel C.
Karel C.
User
Autore

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 ?

Leggi di più
Postato il da Karel C.
Paul M.
Paul M.
Moderator

Yes, if you include them manually.

Leggi di più
Postato il da Paul M.