Saturday 15 May 2010

php - How do I access the template color inside an article? -



php - How do I access the template color inside an article? -

i'm new joomla, using version 3.3.6 default protostar template (based on bootstrap). i'm using sourcerer plugin insert php code articles.

now want access template color style border of table. within index.php can utilize $this->params->get('templatecolor'). however, within article there no object context defined. have had @ variables , objects defined in sourcerer. far without success.

or there (better) method of dynamically using template colors within editor?

use below code template-color

$app = jfactory::getapplication(); $params = $app->gettemplate(true)->params; $color = $params->get('templatecolor');

php css twitter-bootstrap joomla

No comments:

Post a Comment