While asking a technical question on forums, please specify Your version of Joomla and JoomSport component.
Im trying to set up a site with multiple divisions. As a result of this I want two or more menuitems which shows different "Player lists". I have linked a menuitem to two different divisions, but if I use the rolldown menu in playerlist to select different seasons, this setting is remembered. So next time I access "Player lists" trough my menu item it shows my earlier choice, not what I have defined in backend as parametre for this menu item. Sounds to me that this is due to som cache setting?
(I have btw turned off cache in joomla global configuration).
Thank you for contacting JoomSport support.
It's a bug it will be fixed in the next Pro version.
Or you can fix it yourselves.
Please go to the file: components\com_joomsport\models\default\playerlist.php
Find the lines:
$this->s_id = $this->mainframe->getUserStateFromRequest( 'com_joomsport.sidsel', 'sidsel', -1, 'int' );
And replace by:
$Itemid = JRequest::getInt('Itemid');
$this->s_id = $this->mainframe->getUserStateFromRequest( 'com_joomsport.sidsel'.$Itemid, 'sidsel', -1, 'int' );
Let me know if there are any difficulties, I'll be glad to help you.
The BearDev Support Team
No, this does not fix the problem fully.
After your fixed code is applyed it works in the following way:
First time I access my menu link to Playerlist i get an empty list with the selection "All" in combobox at upper right. However no players are visible. After making a choice in combobox the menuitem connected to the player list always shows my preavious choice.
When I access one of my other menuitems linked to another pleyerlist it altso shows an empty list, however my two different menuitems does not show exactly the same anymore, I can have different chioces. So so far so good, an improvement!
But Im expecting that when I initially enters my player list from my menuitem it will show players that corresponds to my choice in backend.
JoomSport.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries
Copyright © 2009-2013 BearDev < Web Solutions /> JoomSport site Disclimer