1
Hi everyone,
I'm looking for a bit of help from an extcal developer (Mamba, help).
What I am trying to do is duplicate view_calendar-week.php or rather I am copying all code from the file into view_week.php (after deleting all existing code from view_week.php).
What I want to do is basically duplicate the template for view_calendar-week and modify it to have a different layout, so if someone goes to view_week.php it will use the exact same code, smarty variables, etc but the template will have a different layout.
I have duplicated the extcal_view_calendar-week.html and renamed it to extcal_view_calendar-week-list.html, added this intop xoops_version.php and updated the module.
Everything works ok so far, no errors, etc using same code as view_calendar-week in view_week.php but view_week.php still seems to use the extcal_view_calendar-week.html template and not the duplicated one.
I think the issue may be with this line:
$params = array('view' => _EXTCAL_NAV_CALWEEK, 'file' => _EXTCAL_FILE_CALWEEK);
and the constants contained in that line, I can see where the constants are defined but I cant see or figure out how a template is assigned to a particular php file. In view_calendar-week.php I was expecting something like
xoopsTpl->assign('put_new_template_file_here');
but I dont see it. Can anyone tell me how a template file is assigned to a particular php file?
Cheers