[0.8] Another Smarty Variable
Posted: Sun Jan 30, 2005 11:44 am
Hi!
It is not realy a bug, more a feature request (please move the thread if it´s missposted)
I startet to develop a new Style for serendipity 0.8 - the problem is the embedding of images. The Template needs a variable with the path of the template in it. Example
index.tpl
doesn´t get the image (of course, the path isn´t correct) so i have to write
(I searched very long until I found this possibility)
I think it is more effective an easier if you set a variable on that path like
{$serendipityTemplatePath} or something like this. I looked at the debbuging output of serendipity and did not found it.
Maybe you integrate this var?
It is not realy a bug, more a feature request (please move the thread if it´s missposted)
I startet to develop a new Style for serendipity 0.8 - the problem is the embedding of images. The Template needs a variable with the path of the template in it. Example
index.tpl
Code: Select all
<img src="img/banner.jpg" />
Code: Select all
<img src="{serendipity_getfile file="img/banner.jpg"}" />
I think it is more effective an easier if you set a variable on that path like
{$serendipityTemplatePath} or something like this. I looked at the debbuging output of serendipity and did not found it.
Maybe you integrate this var?