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)
stylesheets and .tpl's
sdohar
I don't think my presentation .tpl is finding my stylesheet...help!
The link in .tpl looks like this:
<link rel="stylesheet" type="text/css" href="/httpd/iw/ewebeditpro20/LCV2.css">
(note: same directory as the IW default stylesheet, ektnormal.css)
Is this the correct way to specify the path? Any recommendations?
Thanks!
Find more posts tagged with
Comments
mogoo
I think the href in your <link> needs to start at the root level of your workarea, or if you want to access it in the ewebeditpro20 dir, you need to start with "
http://YOUR
TEAMSITE SERVER/opt/iw-home/...."
maureen
sdohar
OK, now I've put the .css in the root level of the workarea. The link in the .tpl is as follows:
<link rel="stylesheet" type="text/css" href="LCV2.css">
It still isn't picking up the stylesheet settings.
Migrateduser
So, you're saying that you have the css file in root level in workarea and you have a web page generated by a template in the same directory that refers to the css, but it's not working? If it's Unix, did you make sure the css file is case sensitive.
sdohar
This time I put the .css in the same folder as the generated html, and IT WORKS! Now my problems is that I'll need to have dozens of copies of the same stylesheet for each generated folder. My branch structure looks like this:
/content_type/ (contains datacapture.cfg)
/content_type/data (contains DCRs)
/content_type/generated (contains generated html)
/content_type/presentation (contains .tpl)
To copy .css into each generated folder (there are probably around 50!) will be very tiresome. Any other suggestions?
Thanks for the help so far....getting closer!
mogoo
your link tag was right, you just need a slash in there...
href="
/
LCV2.css"
sdohar
It's working now....thanks so much!