[ZendTo] Re: RFE: Specific Template Directories

--[ UxBoD ]-- uxbod at splatnix.net
Wed Oct 12 12:26:54 BST 2011


Hmmm, in theory all that appears to be required is to modify Smartconf.php (under lib) and change:

// Set-up Smarty template object
$smarty = new smarty;
$smarty->template_dir = $app_root . '/templates';
$smarty->compile_dir  = $app_root . '/templates_c';
$smarty->config_dir   = $app_root . '/config';
$smarty->cache_dir    = $app_root . '/cache';
$smarty->plugins_dir  = $app_root.'/lib/smarty/plugins';

$smarty->configLoad('zendto.conf');

to be:

// Set-up Smarty template object
$smarty = new smarty;
$smarty->compile_dir  = $app_root . '/templates_c';
$smarty->config_dir   = $app_root . '/config';
$smarty->cache_dir    = $app_root . '/cache';
$smarty->plugins_dir  = $app_root.'/lib/smarty/plugins';

$smarty->configLoad('zendto.conf');

$smarty->template_dir = $app_root . '/templates/' . $smarty->getConfigVariable('CSSTheme');
-- 
Thanks, Phil

----- Original Message -----
> +1
> On 12/10/11 11:58, --[ UxBoD ]-- wrote:
> > Jules, in the preferences their is the option to set which css  one
> > wishes to use; by default Swish.How feasible would it be to extend
> > that to have everything under a swish directory including the
> > templates themselves ? That would make theming easier especially
> > when
> > changes have been made to the core templates.
> > --
> > Thanks, Phil
> 
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> 


More information about the ZendTo mailing list