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 CiviContribute (Moderator: Donald Lobo) »
  • Contribution page link in Drupal menu?
Pages: [1]

Author Topic: Contribution page link in Drupal menu?  (Read 1096 times)

andrec

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
    • Ukrainian Historical and Educational Center
  • CiviCRM version: 4.4.1
  • CMS version: Drupal 7.20
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Contribution page link in Drupal menu?
July 02, 2012, 06:08:58 am
I am currently building a new Drupal 7 site to replace our current Joomla site, and I imagined that I could do something, but either I'm missing something or it's not possible in Drupal+CiviCRM (shocking   :) ) It's entirely possible that it's the former, because I'm still a bit of a Drupal and CiviCRM newbie.

One of my main menu items is "Support", which currently has child items like "Volunteer", "Bequests/Planned Giving", etc., all of which are ordinary Drupal nodes. I have a menu block (http://drupal.org/project/menu_block/) set up in a side bar to show all of the child links of the current main menu item.

I was hoping (perhaps unreasonably) that I could add a child item "Donate now", that would link to a CiviContribute contribution page and behave like any other Drupal node. I created a contribution page and an alias (civicrm/contribute/transact?reset=1&id=4 to support/donate-now). The alias works fine, and I can create a menu item and assign the path. It works, but behaves as if it were not part of the menu, i.e. the breadcrumbs are "Home > [contribute page title]" instead of "Home > Support > Donate now", and the menu block of child items does not appear in the side bar.

Is there any way to get the desired breadcrumb, and, more importantly, get the side bar "Support" menu to show up? Am I asking for too much?

I have a sneaky feeling there's some Drupal trick that could make this work (maybe involving Panels or Views?), and I'm sure I'll come up with an idea right after I hit "Post", but I'd be extremely grateful for any ideas you folks may have.

Mike
« Last Edit: July 02, 2012, 06:10:44 am by andrec »

andrec

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
    • Ukrainian Historical and Educational Center
  • CiviCRM version: 4.4.1
  • CMS version: Drupal 7.20
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Re: Contribution page link in Drupal menu?
July 02, 2012, 08:16:06 am
I'm now considering the notion of embedding the "civicrm/contribute/transact?reset=1&id=4" page as an iframe within a Drupal "Basic page" node, adding that node to the "Support" menu, and using css to "display: none;" all of the extraneous menus/headers/etc.

It might work, but it seems utterly crazy...

andrec

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
    • Ukrainian Historical and Educational Center
  • CiviCRM version: 4.4.1
  • CMS version: Drupal 7.20
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Re: Contribution page link in Drupal menu?
July 02, 2012, 02:33:06 pm
Not crazy at all, apparently. The iframe idea works fine so far.

Gerhard

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 0
  • Anyone who has hope is happy…
    • Drupal Agentur
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.60
  • PHP version: 5.2
Re: Contribution page link in Drupal menu?
October 30, 2012, 08:37:48 am
Dear andrec,

I am struggling with exact the same "problem" but now can't quite get away with the css to "display: none;" all of the extraneous menus/headers/etc.

I tried to limit it on the node-id and then the different regions I want to "hide" - but without success.
Can you paste your css with that you managed to hide only the things for that node with the iframe to the contribution page?

Thx -Gerhard

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Contribution page link in Drupal menu?
October 30, 2012, 01:57:23 pm
You could look at http://drupal.org/project/custom_breadcrumbs as it should be able to help with this, without requiring an iframe.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Gerhard

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 0
  • Anyone who has hope is happy…
    • Drupal Agentur
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.60
  • PHP version: 5.2
Re: Contribution page link in Drupal menu?
October 31, 2012, 01:52:14 am
Dear Hershel,

thx for the tip - but in my case I need to show the link to the civicrm contribution page in my first sidebar 2nd level active-trail submenu generated with drupal's block-menu.
cusstom breadcrumbs are exactly the solution if this ccivi contrib page should appear in the breadcrumb nav.
but unfortunately this doesn't help for the case of the block-menu...

anyway, I will find a solution somehow and post the results (even if I failed...)
-G

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Contribution page link in Drupal menu?
October 31, 2012, 04:32:04 am
You can also set the active menu item (which determines the breadcrumbs) via PHP code.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution page link in Drupal menu?

This forum was archived on 2017-11-26.