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 Drupal Modules (Moderator: Donald Lobo) »
  • show Drupal 7 block on one CiviCRM page
Pages: [1]

Author Topic: show Drupal 7 block on one CiviCRM page  (Read 1244 times)

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
show Drupal 7 block on one CiviCRM page
November 20, 2012, 01:09:56 pm
I want to have a Drupal block show up on one of my CiviCRM pages. It works when I set the block to display on all pages, but I want to restrict it to show only on the following URL:

civicrm/contribute/transact?reset=1&id=13

When I set this URL in the block settings. The block does not show up on this page. I've tried the trick from this post: http://forum.civicrm.org/index.php/topic,7497.msg32851.html which worked for me with Drupal 6 but it doesn't work with Drupal 7 because when I use an alias for this page, it breaks the theme -- I get the administrative theme instead of the public theme. I've tried making my alias begin with "civicrm/" but that doesn't work either.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: show Drupal 7 block on one CiviCRM page
September 19, 2013, 12:35:22 pm
Just went looking for the solution to this - did you ever get this sorted? I am sure i had it sorted previously but not finding it.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: show Drupal 7 block on one CiviCRM page
September 19, 2013, 06:04:50 pm
Just posted this in this related thread above also, figured I'd add it here.

https://gist.github.com/xurizaemon/6632034
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • show Drupal 7 block on one CiviCRM page

This forum was archived on 2017-11-26.