Page 1 of 1

Adding image in static page plugin

Posted: Thu Mar 10, 2005 10:25 pm
by Roaster
Hi,

I would like to add an image inside the content area in the static pages plugin. I've uploaded this image into the ./img subfolder inside my template e.g.: ./templates/myblog/img/sample.gif

I'm searching for any possibility to do something like this
<img="{serendipity_getFile file="img/sample.gif"}"> however this does not work.

Can I use s9y function inside the HTML code of a static page?

cu,
Roaster

Re: Adding image in static page plugin

Posted: Sun Mar 13, 2005 1:17 pm
by garvinhicking
No, sadly you can't. You need to use the full image path to put into your HTML code.

I think there is someone working on a Smarty markup plugin, so that you could use those functions. If not, I just added it to our Todo list.

Regards,
Garvin

Posted: Sun Mar 13, 2005 2:00 pm
by Roaster
If not, I just added it to our Todo list.
That would be fine! I think this may be a handy enhancement.

Thanks,
Roaster