Welcome, Guest
Username Password: Remember me

getting the link from post method
(1 viewing) (1) Guest
If you need assistance in using JBS version 7.x or above, please be as complete as possible. Also be sure to look at the documentation site first, as it is constantly growing: www.joomlabiblestudy.org/jbsdocs
  • Page:
  • 1
  • 2

TOPIC: getting the link from post method

getting the link from post method 31 Aug 2011 11:43 #2755

  • Zsigmond
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
I'm working on building a menu interface that has predefined href urls and my question is how to discover what are the JBS filter's post messages, the hidden urls so that I could get some fast filterings instead of creating independent studies lists for each filtering...

Now if I perform a filtering I get an url that says nothing about my filtering preferences:
localhost/joomla/index.php/component/bib...dy/?view=studieslist

I figured out the encoded url and tried to combine it with /component/biblestudy/ or only index.php but it doesn't works :
filter_location=6&filter_book=101&minChapt=&maxChapt=&filter_teacher=0&filter_series=0&filter_messagetype=3&filter_year=2010&filter_orders=DESC&filter_topic=0&option=com_biblestudy&task=&boxchecked=0&controller=studieslist


-------------------------------

Issue solved with the help of this hint:
mentaljetsam.wordpress.com/2008/06/02/us...-data-between-pages/
Last Edit: 31 Aug 2011 12:37 by Zsigmond. Reason: solved

Re: getting the link from post method 31 Aug 2011 14:20 #2756

  • Tom
  • OFFLINE
  • Moderator
  • Posts: 316
This should work:



The other filters should work in the same way. You don't have to put a zero value - that is assumed so only add those items you want included in the filter

For some reason my link isn't showing - but after your site and the index file put in something like ?option=com_biblestudy&view=studieslist&filter_teacher=1
Last Edit: 31 Aug 2011 14:22 by Tom.
The following user(s) said Thank You: Zsigmond

Re: getting the link from post method 01 Sep 2011 08:34 #2757

  • Zsigmond
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
Any possibility to filter after multiple values for the same kind with this post method? Filtering for month?

For example, I would like to filter sermons with locations in the same region...(I would stick with this method rather than creating studies lists that are so customizable and so many clicks for setting up each criteria and in the end if some changes would have to be made to the template.. do it for all of them again) I tried separating the values by ,+-, no success yet.
Last Edit: 01 Sep 2011 08:53 by Zsigmond.

Re: getting the link from post method 01 Sep 2011 14:06 #2758

  • Tom
  • OFFLINE
  • Moderator
  • Posts: 316
Sorry - that method won't work as we aren't testing for an array or able to handle multiple values. You know - you can copy the template once you get all of your settings the way you want - that would make that process easier. You can then use the menu filters to choose which studies you want to show - though I don't think a date range is possible even with that - this just wasn't something we envisioned being needed.

Re: getting the link from post method 02 Sep 2011 10:58 #2759

  • Zsigmond
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
Is there a value to reset the filters by post method, other than sending "0" values to the filters? There is a paramater "task" does that have a value with this fuction?
Last Edit: 02 Sep 2011 17:18 by Zsigmond.

Re: getting the link from post method 02 Sep 2011 16:58 #2760

  • Tom
  • OFFLINE
  • Moderator
  • Posts: 316
I don't think so. The filters look out using JRequest::getInt() so they are looking to the request variables GET, POST so if there is no value in the request then it skips it in the model. Sounds like you'd have to send a null value to reset the variable.
The following user(s) said Thank You: Zsigmond
  • Page:
  • 1
  • 2
Time to create page: 0.67 seconds