Extra stylesheets for different pages
| From: | Peter Bowyer | Date: | Sat, 22 Dec 2001 08:57:02 +0000 |
| Subject: | Extra stylesheets for different pages | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2370@lists.php.net to get a copy of this message | ||
Hi,
How do other people handle having extra stylesheets/javascript for different parts of their site while using Smarty? The only way I can think of is either to make separate header files, which I don't want to do, or to create a custom function such as:
{header type=stylesheet link=article.css}
{header type=javascript link=script.js)
and put this in my page templates. The function is then processed, and assigns anything it generates to a {$header} variable in the header file.
I'm just worried that this is more overhead, which may be avoidable?
TIA,
Peter.
--oOo--
Narrow Gauge on the web - photos, directory and forums!
http://www.narrow-gauge.co.uk
--oOo--
Peter's web page - Scottish narrow gauge in 009
http://members.aol.com/reywob/
--oOo--