Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Filter through passed variable 29 Oct 2017 09:46 #15422

  • pbianco
  • pbianco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Hi,
I need to link two collections, the second one filtered based on a parameter passed from the first one.
How can I retrieve this parameter?
I understand that this cannot be done within the Builder and I am writing specific code for this.
In other words, in collection A I have a list of items, I have added a link to the second collection where a parameter is passed.
In the model of the second collection I need to filter the query based on this parameter, but I cannot get the parameter.
Any solution for this or alternative?
Thanks in advance

Please Log in or Create an account to join the conversation.

Filter through passed variable 31 Oct 2017 18:52 #15425

You can use:
        $app = JFactory::getApplication();	
        $filtervar = $app->getUserStateFromRequest( "filtervar", 'filtervar',$this->state->get("filter.filtervar"));

Please Log in or Create an account to join the conversation.

Filter through passed variable 01 Nov 2017 21:12 #15428

  • pbianco
  • pbianco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Thank you, it works

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.078 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started