Friday, 2 September 2011

Create page.tpl for calendar/* all url in drupal 6

calendar for default  page.tpl

Add following function in template.php.
After create page-calendar.tpl.php file in theme folder.
Clear cache and check it.


<?php
function themeName_preprocess_page(&$vars) {
    if (arg(0) == 'calender'){
            $vars['template_files'][] = 'page-calendar';
    }
} 
?> 

 Calendar display using page-calendar.tpl.php ( without right and left side )

0 comments:

Post a Comment