Friday, 09 October 2015 23:30

Get the active template path

Stick this in the head:

$app = JFactory::getApplication();
$path = JURI::base(true).'/templates/'.$app->getTemplate().'/';

and call it using the $path variable:

<?php echo $path; ?>
Published in Blog

I knocked up this video explaining how the "read more" divider in k2 works, and how it can effect content that contains elements such as lists within the intro text.

Published in Blog
Tuesday, 23 June 2015 23:33

Module position anywhere

The following snippet will create a module position. Place this inside any file, including view files. Replace the text my-new-position with the name of your new module position.

Published in Blog
Page 3 of 3