Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
amien
Specialist
Specialist

Mashup: Put css files in a css folder is not working

I have this in my main.html:

<link rel="stylesheet" href="base.css">

<script src="Main.js"></script>

I want these files in folders. So i added a CSS and JS folder in the extension folder

And changed to:

<link rel="stylesheet" href="css/base.css">

<script src="js/Main.js"></script>

But it doesn't work. I also tried ./js/Main.js and /js/Main.js

What do i do wrong?

6 Replies
Chanty4u
MVP
MVP

you have to drag the folder path,

dont write manually sometimes it wnt work

Anonymous
Not applicable

Please check the CSS and JS file structure properly. Also check WBL file in your folder.

amien
Specialist
Specialist
Author

is that WBL really needed? Cause i don't use the Dev-Hub to develop (using Atom)

I added "css\base.css; " to WBL , but that deosn't solve it.

and the dev hub seems not to be able to handle files in folders. I can't save it

arulsettu
Master III
Master III

add new file in mashup

then paste your css code

save it like filename.css

and use it your html page

Anonymous
Not applicable

No Amien, you don't have to put CSS file in WBL!!!..You can revert the change.

I am saying to check the folder structure where the extension is saved. Sometimes WBL file need to written properly.

amien
Specialist
Specialist
Author

I fixed it by:

* zipping the extension (including the folder structure that i want)

* delete the extension

* import the extension