Forumlar / Cotonti / Core Labs / page templates idea

ez
#31278 2011-11-01 20:40

If you do this (see below), it is very simple to make a separate TPL for a single page. based on the Alias.. This is a very minimal addition, but gives a great freedom with designing. I now have a page.[pagealias].tpl which i can use to design one single page :)

require_once $cfg['system_dir'] . '/header.php';

$mskin = sed_skinfile(array('page', $pag['page_alias'], $sed_cat[$pag['page_cat']]['tpl']));
$t = new XTemplate($mskin);

Hope this will help someone.. By the way it can be found in page.inc.php line 161 (around)

==- I say: Keep it EZ -==