|
From: Javier S. <js...@si...> - 2001-10-08 19:51:15
|
Hello Ben,
I was thinking about templates, and they have a problem (i thnik so :-)
) ... they don't manage dynamic css or images files.
I have solve this problem on my own web-site, adding to templates
directory some subdires :
images , css and javascript ...
each directory contain templates special files ....
then i use a var like {template_url} at the begin of each file call in
the template. for phpbt $template_url=INSTALLURL.'/'.THEME
for example :
actual : <link rel="StyleSheet" href="global.css" type="text/css">
my feature :-) : <link rel="StyleSheet"
href="{template_url}/css/global.css" type="text/css">
templates tree :
temp_name->css
->images
->javascript
So template dir will contain all types non-PHP files.
Ok -> Admin part can't work whith {template_url} ...
What do you think about ?
|