Using placeholder variables to insert images into text boxes

4 posts by 2 authors in: Forums > CMS Builder
Last Post: May 17, 2017   (RSS)

By ross - May 15, 2017

Hi Jerry

I have an idea that's a bit different than what you are starting with.

My first thought is setting up the "Image Library" as a multi-record section.  Each record would be a single image upload and text field called "Placeholder".

Let's assume some example placeholder names:

Image1
Image2
Image3

Note: the placeholders will need to be unique.

Next, we agree on the syntax for calling the images -> example: "#placeholderName"

When you are creating content in another section, you can access the images like this:

"Here's a great photo, #Image1"

Finally, we would build a plugin that runs on record_postSave that reviews the content field and swaps any of the placeholders with an image tag to the appropriate image file.

The plugin will need to include an array that maps out what tables to work and what field names to look for.

Does that make sense?  Feel free to contact me via consulting@interactivetools.com if you want us to build the plugin for you.

Let me know any questions.

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

By gkornbluth - May 15, 2017

Thanks Ross,

Interesting.

Any idea what we're talking about in terms of cost?

Jerry

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By ross - May 17, 2017

Hi Jerry

There are a few more things to go over.

Could you send me an email to consulting@interactivetools.com (with FTP and CMS login) and we'll continue the conversation there?

Thanks.

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/