[ZendTo] Re: RFE: Specific Template Directories

--[ UxBoD ]-- uxbod at splatnix.net
Thu Oct 13 20:41:57 BST 2011


FYI: this works fine.

// Set-up Smarty template object
$smarty = new smarty;
$smarty->config_dir   = $app_root . '/config';
$smarty->configLoad('zendto.conf');
$smarty->template_dir = $app_root . '/templates/' . $smarty->getConfigVariable('CSSTheme');
$smarty->compile_dir  = $app_root . '/templates_c';
$smarty->cache_dir    = $app_root . '/cache';
$smarty->plugins_dir  = $app_root . '/lib/smarty/plugins';

just copy all the templates into a subdirectory or templates called swish. The cp -R swish to what ever you like and update the theme :)
-- 
Thanks, Phil

----- Original Message -----
> 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
> > 
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> 


More information about the ZendTo mailing list