GetSimple Support Forum
Template tag for images? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Template tag for images? (/showthread.php?tid=1707)



Template tag for images? - Cerulean - 2011-05-12

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.


Template tag for images? - Connie - 2011-05-12

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?


Template tag for images? - Cerulean - 2011-05-12

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/i18n-custom-fields/100/


Template tag for images? - sal - 2011-05-12

Yes, the i18n Custom Fields plugin has an "image" type custom field which is what you're after.