I have been able to create my custom pages ok and use the following code for my templates
Code:
// ###### When do == 'xxx' #####
if ($_REQUEST['do'] == 'players')
{
$pagetitle = 'NI Football Fantasy League Players';
$templater = vB_Template::create('fantasy_players');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());
}
// ###### When do == 'yyy' #####
if ($_REQUEST['do'] == 'rules')
{
$pagetitle = 'NI Football Fantasy League Rules';
$templater = vB_Template::create('fantasy_rules');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());
}
// ###### When do does not equal 'xxx' or 'yyy' #####
$pagetitle = 'NI Football Fantasy League';
$templater = vB_Template::create('fantasy_index');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());
I am using v 4.2 and I have created a manin menu using the Navigation Manager and also sub menus. The main menu gets selected ok and highlighted but my sub menus are not. I have looked around the forums for an answer but can't find any. Any ideas or links to how I do this thanks.