Adding image in static page plugin

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Roaster
Regular
Posts: 121
Joined: Tue Feb 22, 2005 9:04 pm

Adding image in static page plugin

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Adding image in static page plugin

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Roaster
Regular
Posts: 121
Joined: Tue Feb 22, 2005 9:04 pm

Post 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
Post Reply