Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Template tag for images?
#1
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.
Reply
#2
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?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
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/
Reply
#4
Yes, the i18n Custom Fields plugin has an "image" type custom field which is what you're after.
Modern UI Admin for GetSimple
Watch the demo. Install this plugin. Use this CSS. Enjoy.
Reply




Users browsing this thread: 2 Guest(s)