My application creates many tables with the same structure but different information (Schedules and results from weekly tournaments).
For the Schedules, there is no problem. I create a table called Schedules and it has its own template, project and page. When I create a new schedule it just overwrites the old Schedules table and all works well.
However… for results I want to keep a history of each week’s result table. I create a unique table (unique in name only, Results####, where #### is the weekly event number).
I have created a template Results which works fine until I want to publish the results. I want to use the Results template with a unique Results page (which I can create under php control). However the page/template insists on checking the table name associated with it. With a different name it does not use the template, despite it’s having the same structure.
Would a true template not be independent of the table it was created with? I don’t mind keeping the name of the table that created the template but that name should be independent of the table name used when using the template to create a page.
What do you think?
- The topic ‘templates, projects and pages’ is closed to new replies.