OliSig Posted October 3, 2019 Share Posted October 3, 2019 Hi, <div w3-include-html="content.html"></div> works fine for me; so does: <div w3-include-html="folder/content.html"></div> but <div w3-include-html="../folder/content.html"></div> does not i.e. picking up a code from a parallel folder. Please advise OliSig Link to comment Share on other sites More sharing options...
Funce Posted October 6, 2019 Share Posted October 6, 2019 Is this the layout of your files? [THIS_DIR] [THIS_PAGE] content.html (first example) folder content.html (second example) folder content.html (third example) Link to comment Share on other sites More sharing options...
OliSig Posted October 7, 2019 Author Share Posted October 7, 2019 (edited) The structure is like this: 1: ok http://www.abc.de/kor/home/index.html http://www.abc.de/kor/home/content.html "index.html" includes: <div w3-include-html="content.html"></div> 2: ok http://www.abc.de/kor/home/index.html http://www.abc.de/kor/home/folder/content.html "index.html" includes: <div w3-include-html="folder/content.html"></div> 3: not working http://www.abc.de/kor/home/index.html http://www.abc.de/kor/folder/content.html "index.html" includes: <div w3-include-html="../folder/content.html"></div> 4: not workinghttp://www.abc.de/kor/home/index.htmlhttp://www.abc.de/kor/content.html "index.html" includes: <div w3-include-html="../content.html"></div> Edited October 7, 2019 by OliSig adding one more structure Link to comment Share on other sites More sharing options...
smus Posted October 8, 2019 Share Posted October 8, 2019 Server settings, try absolute address Link to comment Share on other sites More sharing options...
OliSig Posted October 8, 2019 Author Share Posted October 8, 2019 This work fine (2 folders up and one down): <link rel="stylesheet" href="../../css/w3.css"> Should this not work as well ? (1 folder up and one down) <div w3-include-html="../folder/content .html"></div> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now