Variable Content creates no HTML output and therefore satisfies XH requirements
Variable content (vcontent) is providing an opportunity for variables in CMSimple content. If you need to maintain duplicate content (prices, tariffs, dues, etc.) on different pages on your CMSimple site so you need vcontent.
GPL3. You are allowed to make code changes in this plugin to tailor it to your needs.This plugin is for personal use and you may not redistribute either original or modified code. By downloading this plugin you agree to this limitation to the GPL license.
Download and uncompress vcontent_XH.zip
Upload the entire vcontent directory to your "plugins" directory.
Define variable names and their values in the admin part of this plugin
The Key is a variable name, Content is variable value visible on the page. Comment is optional and is never shown. It can be used to remember what the variable does. Define only one variable pr. line.
Insert variable names instead of values and insert #CMSimplen $output=vcontent();#on the pages with duplicate content and from now on you will only need to update the duplicate content one place.
And the result is:
Vcontent can be used with other plugins. It must be placed as the last call, for example #CMSimple $output .= gallery (xxx); $output = vcontent ();# or #CMSimple $output .= vcontent (gallery (xxx)); #if only content of gallery contains vcontent variables.
Vcontent plugin is tested with CMSimple versions 3.2 and php version 4.3 and 5.2.
version 1.1 released january 2009
- added string parameter for replacement of variables in plugins f. ex.: vcontent (gallery (xxx)); will llook for variables defined in gallery plugin.
version 1.0 released december 2008.
This CMSimple plugin is distributed in the hope that it will be useful - without any warranty; without even the implied warranty of fitnes for a particualr purpose.
© simpleSolutions 2008.