Aller directement à la fin des métadonnées
Aller au début des métadonnées

Return to Manage Events

Configuring Front-end Event Info and Event Registrations in Joomla! Sites

CiviEvent includes the ability to expose Event Information pages, as well as Online Event Registration forms, to users and visitors of the 'front-end' of your Joomla! site. This section covers adding these pages to your front-end site menus. Refer to this page for contribution page setup.

1. Create one or more Events.

Refer to the main Manage Events section for an overview and general information on creating Events.

2. Verify that the Events(s) that you want to include in your front-end site menu(s) work properly in the your Joomla! Administrator interface.

  • Navigate to Administer CiviCRM » Manage Events » Test Drive or Live Page links.
  • Note the ID(s) of the Events(s) you want to add to your front-end menus - you'll need them shortly.

3. Modify your index.php file to support CiviCRM front-end functionality

This Step is Required for Joomla 1.0.x ONLY

This step should be skipped for Joomla 1.5 which has built in session support for the front end.

CiviCRM front-end pages require a session to be started in order to function properly. You will need to patch the front-end index.php page to accomplish this:

  • Open <site root>/index.php in your favorite editor and find this line. (note that the below line might be slightly different based on your exact version of Joomla!.

You may need root privileges or special permissions to edit this file. Add the following lines ABOVE the "$mainframe..." line you just found.

4. Add menu item(s) using the Administrator Menu Manager

Joomla 1.0.x Steps:
  • Login to Administrator if not already logged in.
  • Click Menu on top navigation bar and select the menu you want to add the Event link(s) to (for example - mainmenu).
  • Click New icon (top right).
  • Click Component radio button (top right entry in Components group).
  • Click Next.
  • Enter a Name for the menu item.
  • Choose CiviCRM from the Component list.
  • Complete the remaining fields (Parent Item, Access Level, Published) based on your requirements for this menu item and click Applyicon.
    • The screen refreshes with the Parameters section fields now available.
  • Choose CiviCRM Task - Select Online Event Registration OR Event Info Page.
    • NOTE: The Online Event Page task was added in CiviCRM 1.8. If you're using 1.7 and can't upgrade, you can still create a link manually to Event Info pages using the "Link" type menu item. The URL format is: http://<joomla_root_url>/index.php?option=com_civicrm&task=civicrm/event/info&id=1&reset=1
  • Enter the Event ID using the numeric ID value you noted in the section above.
  • Do not modify the Reset field value (it should always be 1).
  • Repeat these steps as needed to add additional Event menu items.
Joomla 1.5 Steps (CiviCRM 1.8+):
  • Login to Administrator if not already logged in.
  • Click Menu on top navigation bar and select the menu you want to add the Event link(s) to (for example - mainmenu).
  • Click New icon (top right).
  • Click CiviCRM link from the Internal Link list.
  • Enter a Name for the menu item.
  • Complete the remaining fields (Parent Item, Access Level, Published) based on your requirements for this menu item.
  • In the Parameters-Basicsection (upper right):
    • Choose CiviCRM Task - select Online Event Registration OR Event Info Page.
    • Enter the Event ID using the numeric ID value you noted in the section above.
    • Do not modify the Reset field value (it should always be 1).
  • Repeat these steps as needed to add additional Event menu items.
Fixing Problems with Module Visibility

The visibility for Joomla modules are based on menu links (ItemID). Some CiviCRM forms exposed through the frontend will lose the url-based connection to their menu item as you navigate deeper into the form, and consequently any modules associated with that menu item will disappear. To work around this, create a new menu for link generating purposes, set it to the "Special" user or hide it in a non-visible module position. Then create a url menu item and enter the url of the page that experienced the disappearing modules. Return to your module settings and add this new menu link to the list of pages the module should be visible on.

5. Navigate to your front-end site and test out the your new menu items.

Étiquette