Feature Request: Universal Placeholders

7 posts by 5 authors in: Forums > CMS Builder
Last Post: July 19, 2010   (RSS)

Hi, Dave -

I've been really pleased with some of the additions to CMSB of late. However, as a former fan of AM (1&2) there is one feature which has yet to make the cut which I would like to champion.

Is there any way we could introduce some sort of "Universal Placeholder" system - like the one used to such great effect in AM2?

For those not familiar with the system, there is a page in the admin area where you can list your own placeholders. You enter a name and then the corresponding code snippet. So, for example, you might do something like this:

my.domain = http://www.mysite.co.uk

Then wherever $my.domain appears in your template it is replaced by the code - in this case the URL above.

It's a simple system and works with text, links and images. This makes it really easy to construct templates which use site-wide features, such as logo images, menus, page titles, meta data and pretty much anything else. With a little imagination, you can also use it to control CSS and other formatting.

I appreciate AM2 and CMSB employ fundamentally different methods for delivering pages, but is there any way we could do something along these lines? Could it not be some kind of integrated php include system?

:0)

Perch

Re: [chris] Feature Request: Universal Placeholders

Hi, Chris -

Thanks for your note. I like your suggestion about using a single record section ("Globals" is spot on). It would certainly do the job.

Perhaps it would be worth exploring if it would be worth including a basic Globals set-up as a presetschema?

:0)

Perchpole

Re: [Perchpole] Feature Request: Universal Placeholders

By Chris - January 20, 2010

Hi Perchpole,

That's an idea. I'm not sure what fields it would have by default, but we'll mull it over. :)
All the best,
Chris

Re: [chris] Feature Request: Universal Placeholders

By wolf66 - July 18, 2010

I'd like to see this happen, and it would be even better if we could allow the CMS user to place something like ###var.int.rate### using TinyMCE and have that use one of the fields from the Globals. AM2's Placeholder function was quite useful and it's one of the only things missing from CMS B that I'd always use if it was part of the package.

I'm sure we can do it ourselves but if you are planning on it for an upcoming release it would be good to know. Nothing worse then wasting time on a feature you guys implement a month later, and better integrated.

Cheers.

Re: [wolftracks] Feature Request: Universal Placeholders

By Donna - July 19, 2010

Hi Wolftracks,

It's not something on the immediate list of releases, but definitely a good idea for future updates. :)
Donna

--
support@interactivetools.com

Re: [chris] Feature Request: Universal Placeholders

By rconring - July 19, 2010

I have been doing the "globals" thing for a while now .. a "control file" concept from my applications programming days. I use it for meta tag and other information I need to include on all or some pages throughout the site. Works great for me!
Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987