Tuesday, November 30, 2010

How to assign an theme for an particular callback?

In template.php you have to write a function mytheme_proprocess_page() in tha page you have to write the code below

function theme_preprocces_page(&$vars){
if(arg(0)=='test')
$vars['template-file']= 'page-test';
}

No comments:

Post a Comment