[0.8] Another Smarty Variable

Found a bug? Tell us!!
Post Reply
tiberian
Posts: 4
Joined: Thu Jan 27, 2005 9:51 am
Location: Germany, Oelde

[0.8] Another Smarty Variable

Post 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?
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Post by tomsommer »

serendipity_getfile looks for the file, a simple variable would not.
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
Post Reply