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) »
  • Displaying all events and events by type in Joomla
Pages: [1]

Author Topic: Displaying all events and events by type in Joomla  (Read 1697 times)

tapRT

  • Guest
Displaying all events and events by type in Joomla
July 12, 2009, 07:40:43 pm
Hi folks, I am a civiCRM noob here looking to do a few things for events display. I'm using Joomla 1.5.1 and the latest civiCRM 2.2.7.

1) Can I display all upcoming events by type on a page (menu item type per Joomla!).

2) Can display all upcoming events on another page (menu item type per Joomla!).


I'm sure both can be done, but through the joomla admin it was not apparent to me how to do this. Maybe there is a URL string variable that I can pass the type or all events in via this string "option=com_civicrm&view=Events&Itemid" .

Cheers,
TR

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Displaying all events and events by type in Joomla
July 12, 2009, 08:12:18 pm

for 2 check:

http://joomla.demo.civicrm.org/index.php?option=com_civicrm&task=civicrm/event/ical&reset=1&page=1&html=1

to display all events by type you'll need to modify the php code a bit to use the type passed in from the query string

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

tapRT

  • Guest
Re: Displaying all events and events by type in Joomla
July 12, 2009, 08:49:28 pm
Thanks, but how did you get Joomla to create that string to display them all. I only seem to have the option to create a single event display on a menu item. I must be approaching it all wrong somehow through Joomla.

Cheers,
TR

tapRT

  • Guest
Re: Displaying all events and events by type in Joomla
July 12, 2009, 08:59:33 pm
Ok, I just made the menu item a link and used the string as the page URL, that does the trick :) Sorry for jumping the gun there before thinking it through. Now onto trying to figure out how to pass it an event type. Any pointers are where to start looking in the code are much appreciated as this will be my first time digging into civiCRM, which is totally awesome by the way!

Cheers,
TR

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Displaying all events and events by type in Joomla
July 12, 2009, 09:10:08 pm

u'll need to modify the code starting at:

CRM/Event/Page/ICalendar.php


lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Displaying all events and events by type in Joomla
July 13, 2009, 01:14:22 pm
Actually - you can add "type=N" parameter to the URL to filter to a specific event type. N is an integer that maps to event_type_id. Check the Value column under Admin CiviCRM >> CiviEvent >> Event Types.

http://joomla.demo.civicrm.org/index.php?option=com_civicrm&task=civicrm/event/ical&reset=1&page=1&html=1&type=3
Protect your investment in CiviCRM by  becoming a Member!

tapRT

  • Guest
Re: Displaying all events and events by type in Joomla
July 17, 2009, 10:16:45 pm
Thanks, that was exactly what I needed!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Displaying all events and events by type in Joomla

This forum was archived on 2017-11-26.