Multiple Frontends for component
Posted: Thu Mar 06, 2008 7:26 pm
I am writing a custom component to display the roster and schedule for a football team. There are multiple teams and obviously multiple schedules. Due to the relationship, I created a single component that allows for the creation/management of teams, players, and schedules on the administrator side. It works great.
My problem, I now do not know how to display two different views for the same component. One for schedules and one for the rosters. My vision is to use a controller that accepts an extra parameter in the get bar and then decides which view to load. I have implemented this on the backend piece, but I am not able to complete it on the front-end. I could honestly be missing something, I am new to Joomla, OOP, etc and sometimes simple things escape me.
Any assistance would be greatly appreciated. I have been using a book called, Learning Joomla! 1.5
Extension Development by Packet Publishing which has been a great help. If there is a resource to help me along with this then I am open for suggestions as well.
Thanks,
Matt
My problem, I now do not know how to display two different views for the same component. One for schedules and one for the rosters. My vision is to use a controller that accepts an extra parameter in the get bar and then decides which view to load. I have implemented this on the backend piece, but I am not able to complete it on the front-end. I could honestly be missing something, I am new to Joomla, OOP, etc and sometimes simple things escape me.
Any assistance would be greatly appreciated. I have been using a book called, Learning Joomla! 1.5
Extension Development by Packet Publishing which has been a great help. If there is a resource to help me along with this then I am open for suggestions as well.
Thanks,
Matt