Advanced configuration

Custom values

The custom values specified in the page properties can be used in the template like this:

<?php if(isset($custom_value[0])) echo $custom_value[0]; ?>
<?php if(isset($custom_value[0]) && $custom_value[0]=='foo'): ?> 
<p>bar</p> <?php endif; ?>

Call of PHP functions from the page content

  • Set content_function to 1 (Administration → Settings → Advanced settings)
  • You can now specify function calls like this: [function:myFunction(2,3)]

Example function (defined in cms/includes/functions.content.inc.php):

function myFunction($x,$y) { return $x + $y; }

Website designed and maintained by ZoriaMEDIA.com

© 2010-2020 the RiteCMS Project

RiteCMS is a free software released under GNU/GPL license. PhpSqliteCMS is under GNU/GPL license. TinyMCE is under GNU/LGPL license.
EazyMobile™ is a trademark of ZoriaMedia.com. RiteCMS & Logos, all contents of this website are © of the RiteCMS project.

Powered by RiteCMS