Tuesday, 28 March 2017
  5 Replies
  1.2K Visits
0
Votes
Undo
hell experts

when I filter my events by location I get a calendar that schows all events according to this location.
when I use the catergory-filter-legend at the calendar I lose the location-filter-result an get only the categories.

Is it somehow possible to get all the events filtered by location and category?

regards
Berndi
Wednesday, 29 March 2017 09:11
·
#186025
0
Votes
Undo
Hello Berndi,

You need to keep the JEvents Filter module on the page to keep the previous filter :-)

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 29 March 2017 12:35
·
#186057
0
Votes
Undo
Okay, I found the JEvents filter module and put it on the site.

The problem is, that the filter module dosen't get the location, when I use the "events by location" at the list of locations.

how can I pass the location to the filter module, when I use this way?

regards,
Berndi
Friday, 31 March 2017 06:41
·
#186130
0
Votes
Undo
Hello !

I added some code to the calendar template to detect the shown location.
    $tgs_bla = get_object_vars($event);
$tgs_locations[] = $tgs_bla['_location'];

...

$hallencheck = 1;
$tgsinput = JFactory::getApplication()->input;

for ($tgs_count = 1; $tgs_count < count($tgs_locations); $tgs_count++) {
$hallencheck = ($tgs_locations[$tgs_count - 1] == $tgs_locations[$tgs_count]) ? $hallencheck + 1 : $hallencheck - 1;
}
if (count($tgs_locations) == $hallencheck) {
$tgsinput->set( 'TGSLOC', $tgs_locations[0] );
echo '<center><h1 id="TGSLOC" style="margin: 0 0 35px 0; font-weight: normal;">' . $tgs_locations[0] . '</h1></center>';
}
else {
$tgsinput->set( 'TGSLOC', NULL );
}

Now I can get my searchstring by calling
JFactory::getApplication()->input->getString('TGSLOC', null, 'string');


Where do I have to put this string, that it will be called automatically, when I call the searchmodule?

regards
Berndi
Friday, 31 March 2017 11:40
·
#186137
0
Votes
Undo
...and I found the Jevents-object wich contains the search-value

object(jevFilterProcessing)#1989 (7) {
["filters"]=> array(2) {
[0]=> object(jevLocationsearchFilter)#1984 (16) {
["filter_value"]=> string(0) ""
....


How can I write my string to the filter_value?
Monday, 03 April 2017 09:47
·
#186211
0
Votes
Undo
Hello,

So you need to include the Locations filters in the filter module.

You can create your own filters too if you like. See:
https://www.jevents.net/docs/jevents/item/customizing-filters

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.