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 (Moderator: Dave Greenberg) »
  • showing a Drupal block on one Civi event page
Pages: [1]

Author Topic: showing a Drupal block on one Civi event page  (Read 1664 times)

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
showing a Drupal block on one Civi event page
April 08, 2009, 01:32:51 pm
I made a Drupal block that I'd like to show up on one event registration page in Civi.

In the "Page specific visibility settings" for the block, I am using "Show on only the listed pages". The, for the "pages" value
* When I use "civicrm/*" I expect to see the block on all Civi pages, and I do ...so that works.
* But when I use "civicrm/event/register?id=2&reset=1", I expect to see the block on the event registration page at that url, but I do not see the block on that page.

I have also unsuccessfully tried setting the "pages" value to things like:
civicrm/event/register?id=2*
civicrm/event/register*id=2*
civicrm/event/register\?id=2&reset=1

Can anyone help me configure this block so that it shows up on my event registration page?

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: showing a Drupal block on one Civi event page
April 08, 2009, 02:18:22 pm
Hopefully you are on Drupal 6 and 2.2. If so, a workaround is to create an alias first for the Event registration path. The trick here is to add an extra slash before the "?"

So the alias would be something like "event_registration" for the system path of civicrm/event/register/?id=1&reset=1 (notice the slash before the "?")

Once the alias is created, within the block's settings, use the alias to determine the pages it should or shouldn't show up on.

hope this helps
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
Re: showing a Drupal block on one Civi event page
April 08, 2009, 02:52:42 pm
WORKS GREAT!! Thanks!

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: showing a Drupal block on one Civi event page
April 08, 2009, 03:06:48 pm
Cool. No problem

tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • showing a Drupal block on one Civi event page

This forum was archived on 2017-11-26.