Variable Content
#linkware#
#rl_license#
#hide_link#
#support#
2. Installation
Download and uncompress vcontent_XH.zip
Upload the entire vcontent directory to your "plugins" directory.
3. Configuration
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.
var1 | <p>some content text or html</p> | optional description of variable
var2 |value of var2 |
To activate insert { {{vcontent();}}} some place on a page (preferably at the end of page content) and variable names wrapped in the wrapper string from plugin config (default is #).
It may looks like this:
#var1# as a placeholder for the var1 value.{ {{vcontent();}}}
After the page is loaded #var1# will be replaced by the corresponding value. Vcontent is javascript based and works both on variables on the page and plugins output containing variables.
NB! your call to content in template must be wrapped in
<div id="content"><?php echo content();?></div>
4. Compatibility
Variable Content plugin is tested with CMSimple versions1.7 and php version 7.
5. History
version 2.0.0 january 2018 rewrited to jQuery. compatibility with CMSimple XH ver 1.7 and higher but will probably run with any version of CMSimple.
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.
6. Known problems
If you experience conflicts with other jQuery based plugins try moving the call to the vcontent(); function either at the front or at the end of the page
7. Future Development
2lang functionality.
8. Disclaimer
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-2018.
CMSimple plugin: Tooltip and Modalbox © simpleSolutions