Welcome, Guest
Username: Password: Remember me
Pleas keep in mind that SPAM will be deleted instantly
  • Page:
  • 1

TOPIC: Catalog view filtered on page URL

Catalog view filtered on page URL 2 years 1 week ago #4837

  • pellinim@me.com
  • pellinim@me.com's Avatar Topic Author
  • Offline
  • Posts: 4
  • Thank you received: 0
Hello,
It's me again, sorry for possibly posting a stupid question, but I'm not really an expert yet.

I've a page in my website that show the calendar+results for a volleyball team.

I set filters and they work perfectly (of course):


What I'd like to make now is (from other pages) be able to go this page with filters applied in the target page URL, in order to have the filtered result directly

I mean, can I use an url like
www.mywebsite.com/index.php?option=com_j...=catalog&Itemid=208& query=Gara:4202
or something like that?

Again, may apologizes if I'm asking something so clear to you.

This message has an attachment image.
Please log in or register to see it.

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

Catalog view filtered on page URL 2 years 1 week ago #4838

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1112
  • Karma: 21
  • Thank you received: 202
Your request is understandable.
If you want to add requests to other URLs you should do this by plugin.

The main filter variables for the joodb catalog are search , searchfield and gs[] (array groupselect values), fs[] (array fieldselect values)

If you want to add a search request to a custom URL you do as described.
Create a file called addsearch.php in /components/com_joodb/plugins
addsearch.php
<?php
defined('_JEXEC') or die('Restricted access');
$url = $part->parameter[0];
$input = JFactory::getApplication()->input;
$output .= JRoute::_($url."&search=".$input->getString('search')."&searchfield=".$input->getString('searchfield'));

Call it like this in the catalog template.
<a href="{joodb addsearch|index.php?option=com_joodb&view=catalog&Itemid=208}">Other catalag</a>

For a public website you should escape the input
JfilterOutput::stringUrlSave($input->getString('search'));

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

Last edit: by Dirk.

Catalog view filtered on page URL 2 years 13 hours ago #4861

  • pellinim@me.com
  • pellinim@me.com's Avatar Topic Author
  • Offline
  • Posts: 4
  • Thank you received: 0
Hello Dirk,
thanks for your reply and my apologizes for this late answering (I was a few days off with limited internet access).

I'm sorry I was not clear in my question, however I can confirm what I was looking for ... is actually available thanks to the READON command.
My fault for not having carefully read the full documentation. Excuse me again.

I'm really impressed about JOODB; I was able to make some very interesting improvements to my site.
Thanks for that!

I'm evaluating now to buy the PRO version (mainly for the Excel import and the prev/next option), but before proceeding with the purchase order I've a doubt: as far as I understood the license is for one domain only; that's ok in my case by the way I'm wondering if I can use the PRO version in my offline development environment based on XAMMP on MAC.

Thanks a lot and best regards
Mario

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

Catalog view filtered on page URL 2 years 13 hours ago #4862

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1112
  • Karma: 21
  • Thank you received: 202
Dont't worry!
Use you development server and enter the final domainname as domain to validate the license.

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

  • Page:
  • 1
Moderators: Dirkjoest