🌍
English
is there a way to set a template extension only for 1 theme ?
my idea was to set a $conf['something'] in themeconf.inc.php and to check this value in my extension.
I think it would work, but I'm not sure it's the better way to do it
Last edited by repie38 (2009-07-17 18:45:06)
Offline
$user['theme'] would be enough, no need to set a value in themeconf.inc.php
Offline
In themeconf.inc.php, you can code:
$this->set_extents(
array(
'menubar.tpl' => 'menubar',
'picture.tpl' => 'picture'
),
dirname(__FILE__).'/template-extension/'
);
... where template-extension is a sub-directory of your theme directory.
Last edited by P@t (2009-05-20 02:11:38)
Offline
as usual, great !!
thanks P@t ;)
Offline