Code: Select all
<param type="list" name="events_layout" label="Events layout">
<option value="1">Calendar grid</option>
<option value="2">Result list</option>
<option value="3">Task list</option>
</param>
The problem is not really there because this works perfectly fine.
My question is, i've got the following views:
- events
- results
- teamcal
- teamresults
Which all displays pretty much the same information. If you look at the template folder for each of these views there are approximately 11 layout files ranging from default.php to default_calgrid_item_result.php. Now, if i had only one view or 2, changing information in each of the template files wouldn't be too long. But now i've got 4 and nothing says i won't have more later.
If i have a global change to do in one of the item files (2 types: results, events multiplied by 3 layouts: calendar, grid, tasklist multiplied by number of views) it gets long to change each file, remember to upload, change the repository.
So finaly, my question is pretty simple...
Can i create somekind of dummy view that contains the templates i want to load such as:
Code: Select all
$CalendarEngine = new JoomsportViewCalendarEngine();
echo $CalendarEngine->loadTemplate('calgrid_header_events');
Thanks