121 Posts
deralex
9 years ago
0
Topic

I've spent hours to find out how to access custom parameters from within a template. So perhaps this will help someone.

First have a look at how to setup multi-sites and custom parameters:

http://www.seblod.com/resources/tutorials/how-to-add-some-custom-parameters-to-a-site-multi-sites

I've grabbed my piece of code from SEBLOD site (Multi-sites):

if(JCck::isSite()){
$site=JCck::getSite();
$site_options=( is_object( $site ) ) ? new JRegistry( $site->options ) : new JRegistry;
$live=$site_options->get( 'my_custom_parameter', '' );
$my_parameter=(string)$live;
}
Get a Book for SEBLOD