Page 1 of 1
What path to stylesheets?
Posted: Fri Dec 02, 2005 2:25 pm
by terimurphy
When i put a stylesheet link in my template, what path should I use:
1. If I used the box provided to input the css, or,
2. If I just want to upload a stylesheet directly--where is the best place to put it?
thanks
--apologies if I've double posted, I can't find what I thought I posted before.
Re: What path to stylesheets?
Posted: Fri Dec 02, 2005 3:25 pm
by terimurphy
So you're telling me I have to use hard links with the full path?
And thus I guess that must be true when I have a link in the content from one page of the site to another, heh?
teri
Re: What path to stylesheets?
Posted: Fri Dec 02, 2005 3:38 pm
by calguy1000
Incase you didn't understand what Patricia mentioned, The easiest way (if you're not aware already) is to create a new stylesheet under the Layout->Stylesheets menu, copy and paste your existing stylesheet into there, and then associate that stylesheet with your template. in CMS, the stylesheets and templates can be stored in the database, making it easy to re-use templates and stylesheets on your site.
Then make sure your template has the {stylesheet} tag somewhere in the head section.
Then any pages using that template will automatically get the associated stylesheet.
BTW, you can create and associate more than one stylesheet with a template, if you didn't know already.
Hope this helps.
terimurphy wrote:
So you're telling me I have to use hard links with the full path?
And thus I guess that must be true when I have a link in the content from one page of the site to another, heh?
teri
Re: What path to stylesheets?
Posted: Fri Dec 02, 2005 10:10 pm
by terimurphy
Sorry to be dense, but I still don't get how to use two stylesheets. My template currenly says:
Code: Select all
{stylesheet}
<link href="http://pcifchurches.org/tmp/templates/church_main.css" rel="stylsheet" type="text/css" media="screen" />
And the top one works fine, but the bottom one isn't kicking in.
And if I did store them both in the database, would I need something like:
or what?
Re: What path to stylesheets?
Posted: Fri Dec 02, 2005 10:18 pm
by calguy1000
You should create a second stylesheet under "Layout --> Stylesheets --> Add A Stylesheet (link at the bottom of the page)" and included the contents of
http://pcifchurches.org/tmp/templates/church_main.css
in this stylesheet,
Secondly, after hitting apply you will be returned to the stylesheets page, you will see a "css" icon. clicking on this icon (in the same row as your new stylesheet) will allow you to attach that stylesheet to the template of your choice.
Then, no, you should only need the single {stylesheet} tag in your template.
terimurphy wrote:
Sorry to be dense, but I still don't get how to use two stylesheets. My template currenly says:
Code: Select all
{stylesheet}
<link href="http://pcifchurches.org/tmp/templates/church_main.css" rel="stylsheet" type="text/css" media="screen" />
And the top one works fine, but the bottom one isn't kicking in.
And if I did store them both in the database, would I need something like:
or what?