This might be a silly question, but what is the advantage in pasting in my CSS at Layout > Stylesheets and then calling it in the template with {cms_stylesheet}?
It seems easier to just leave the hardcoded links to the stylesheets in my template.
Will a template function okay with hardcoded stylesheet links?
Okay to hardcode link to stylesheet in template?
Re: Okay to hardcode link to stylesheet in template?
If you prefer to upload your stylesheet to a folder and hardcode it in the template thats fine at will work.
Downside of this is that you need to download the stylesheet each time you want to do a minor change and reupload again, with {cms_stylesheet} it is also being cached.
Downside of this is that you need to download the stylesheet each time you want to do a minor change and reupload again, with {cms_stylesheet} it is also being cached.
Re: Okay to hardcode link to stylesheet in template?
UPSIDE is you can work with the web developer extension for Firefox, where you can "live edit" your style sheets, and you can work much faster because you see the changes in realtime ...uniqu3 wrote: Downside of this is that you need to download the stylesheet each time you want to do a minor change and reupload again, with {cms_stylesheet} it is also being cached.
Cheers,
Alex
Re: Okay to hardcode link to stylesheet in template?
Indeed but those 5 seconds are not worth it when I loose the smarty power in stylesheets and with this controlls like colors, width and other options that can be used with smarty in css.faglork wrote:UPSIDE is you can work with the web developer extension for Firefox, where you can "live edit" your style sheets, and you can work much faster because you see the changes in realtime ...uniqu3 wrote: Downside of this is that you need to download the stylesheet each time you want to do a minor change and reupload again, with {cms_stylesheet} it is also being cached.
Cheers,
Alex
Last edited by uniqu3 on Tue Nov 02, 2010 6:32 am, edited 1 time in total.
Re: Okay to hardcode link to stylesheet in template?
@faglork
Firefox Web Dev. don't care where the style sheets come from it will still work with them...
Firefox Web Dev. don't care where the style sheets come from it will still work with them...
Re: Okay to hardcode link to stylesheet in template?
Of course ...Dr.CSS wrote: @faglork
Firefox Web Dev. don't care where the style sheets come from it will still work with them...
but only with an external style sheet you can just press "save", change to a tab running fireftp, load up the css file, and you are done. This is much faster than opening the stylesheet(s) in the editor and then transfering all the changes to the respective stylesheet.
Cheers,
Alex
Re: Okay to hardcode link to stylesheet in template?
Well, there is one thing... module... TemplateExternalizer...
http://dev.cmsmadesimple.org/projects/externalizer
That way you can edit realtime and store. It will be included inside the DB by the module.
Ronny
http://dev.cmsmadesimple.org/projects/externalizer
That way you can edit realtime and store. It will be included inside the DB by the module.
Ronny
Re: Okay to hardcode link to stylesheet in template?
I'm surprised nobody has yet mentioned the time it would take to update a multiple template website...
If you're using {cms_stylesheet} you can use as many stylsheets as you want, edit them easily, add more easily and you never have to go anywhere near your templates.
If you hard code them into your templates and you want to add a new stylsheet you have to go through and update every template you're using. It's an unecessary job, even if your site is only using a few.
If you're using {cms_stylesheet} you can use as many stylsheets as you want, edit them easily, add more easily and you never have to go anywhere near your templates.
If you hard code them into your templates and you want to add a new stylsheet you have to go through and update every template you're using. It's an unecessary job, even if your site is only using a few.