Page 1 of 1

[0.8] Another Smarty Variable

Posted: Sun Jan 30, 2005 11:44 am
by tiberian
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

Code: Select all

<img src="img/banner.jpg" />
doesn´t get the image (of course, the path isn´t correct) so i have to write

Code: Select all

<img src="{serendipity_getfile file="img/banner.jpg"}" />
(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?

Posted: Sun Jan 30, 2005 1:52 pm
by tomsommer
serendipity_getfile looks for the file, a simple variable would not.