CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Frontend Filter for Current and Upcoming events
Pages: [1]

Author Topic: Frontend Filter for Current and Upcoming events  (Read 453 times)

web_services

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.3.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.24-1~dotdeb.0
Frontend Filter for Current and Upcoming events
October 07, 2014, 02:56:47 am
Hallo Community,

I have the challenge to filter the events from the CiviCRM Event List in the fronted by "Venue" and/or Category to have a better overview for the front end user. Allocating different views of the event list to sub menus.
I have found a thread form 2011 without answers, in the documentation I could not find something regarding filtering either. Is there a need for hardcoding it as there are not options (joomla configuration) for "Event Listing".

Is somebody out there who has completed a similar task?

Thank you for your suggestions!

B ert

P.S. may be something like:
http://samadhi-institute.org/index.php/de/veranstaltungen?reset=1&id=8    and instead of the id=N the category=N
« Last Edit: October 07, 2014, 03:46:13 am by web_services »

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Frontend Filter for Current and Upcoming events
October 07, 2014, 04:50:25 am
To the best of my recollection, there aren't any filters for the Current and Upcoming Event list, it is very basic (it has been a while since I have used the base version).  In the past I have had to customize the code to add filters and extra columns.
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Frontend Filter for Current and Upcoming events
October 09, 2014, 07:04:45 am
http://d45.demo.civicrm.org/civicrm/event/ical?reset=1&list=1&html=1&type=3 filters only events with id of type 3.

https://github.com/civicrm/civicrm-core/blob/master/CRM/Event/Page/ICalendar.php#L52 is a bit technical but if you can understand it, it will point you to other filters you can use / params that you can pass.

Otherwise, let me know and I can explain.
« Last Edit: October 09, 2014, 07:09:38 am by Michael McAndrew »
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

web_services

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.3.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.24-1~dotdeb.0
Re: Frontend Filter for Current and Upcoming events
October 11, 2014, 10:06:19 am
Thank you Michael, this was a useful hint!

with joomla it looks something like .../index.php/en/events?reset=1&list=1&html=1&type=13 where the former part is defined by the menu

Is there a similar function to call for the "Venue"   &venue=NN ???

--
P.S. i figured out as well a combination is possible like ...?reset=1&list=1&html=1&type=6+13   :D
« Last Edit: October 12, 2014, 02:14:40 am by web_services »

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Frontend Filter for Current and Upcoming events
October 15, 2014, 03:41:45 am
Quote
Is there a similar function to call for the "Venue"   &venue=NN ???
I don't think so but if you are a little handy with coding, it might not be too difficult to add, given that you have the event type example.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Frontend Filter for Current and Upcoming events

This forum was archived on 2017-11-26.