GetSimple Support Forum

Full Version: Template tag for images?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi folks, another question...

Looking through the documentation I don't see a template tag for images. For example, a tag that returns the path to an image with a file selection control in the admin. That would be very useful.

Am I missing something? Or is there a plugin that can provide that sort of functionality?

Thanks.
I just can follow you

as a template is pure HTML with some tags, you are free to add any images you want and you can edit it in any way you want
templates are edited by experienced users mostly, so I do not see your problem, please explain further

if I understand you right, you want to have the editor for the templates, just as for the pages, is this correct?
The "template tags" are special tags that perform functions: http://get-simple.info/wiki/themes:template_tags

My question was about a template tag for returning code for an image that is selectable by a user in the backend. For example, let's say I create a theme that has a banner image that I would like users to have the option of changing via the CMS admin. I don't want to hardcode the image into the template, but rather use a template tag that dynamically inserts the code for an image that the user has selected (probably using some sort of file picker) in the backend.

I haven't had the opportunity to test it yet, but it looks like the Custom Fields plugin might let me do this.
http://get-simple.info/extend/plugin/i18...ields/100/
Yes, the i18n Custom Fields plugin has an "image" type custom field which is what you're after.