Feature Request: Universal Placeholders

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

Re: [Perchpole] Feature Request: Universal Placeholders

By Chris - January 19, 2010

Hi Perch,

I've done something like this on my own projects using a Single Record Section called Website (maybe Globals would be a better name) which I load on every page. Rather than copying the code to load that record all over the place, I include a single "includes/init.php" file which does this (as well as including viewer_functions.php). Inserting values from my Website table is then as easy as <?php echo $website['field_name'] ?>

Specifically, I've used this for CSS colours and page titles so that my end-users can easily update them.

Does that accomplish what you're after or is it missing something you were thinking of?

I hope the helps! Please let me know if you have any questions.
All the best,
Chris

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