Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
SitePublisher shared resources -javascript/css
System
I added my javascript and css files to the default.site, but they are not working. please help
ps ---(they are enabled)
Find more posts tagged with
Comments
Migrateduser
Nevermind - the images folder was in the wrong place
amu
Hi,
We have created a site , included the JS , in the folder say
Javascript Files : assets/scripts/core.js
assets/scripts/commentit.js
And the CSS files in the path
CSS Files: assets/styles/autoquicksearch.css
assets/styles/calendar.css
Files in both the sections are enabled resources.
But both the images and styles are not reflecting in the page , while we are previewing the page.
Please suggest.
Regards,
Amu
Rick Poulin
Have you tried the solution from this thread? (meaning, have you double checked that your CSS isn't dependent on images or included CSS that is not accessible in the workarea, or using the paths specified in the files you're explicity including)
amu
Hi,
Yes we have checked the same.
But we have a question.
"Is there is any specific path, inside WORKAREA to place the images and css? For eg in our TS branch we have created and placed the images,js and css in folders as below,
/WORKAREA/WA1/assets/images
/WORKAREA/WA1/assets/scripts
/WORKAREA/WA1/assets/css
We are trying to preview the pages created in the folder,
/WORKAREA/WA1/sites/foldera/test.page
Rick Poulin
That should be fine. What path are you using to reference the images in your css?
To validate that your CSS is actually loading, try putting a super generic and obvious rule in that file, like
body, div, p { background-color: green; color: red; }
Kapil_sape
Apart from what Rick has suggested please check to see how are you putting your images in the page. Is it through CSS? If yes then please check the path of images in the CSS; is it correct relative to the image path in teamsite?
In addition you can also attach your test page file along with the css for review.
Thanks!