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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Drupal path aliases
Pages: [1]

Author Topic: Drupal path aliases  (Read 968 times)

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Drupal path aliases
April 26, 2010, 05:29:11 am
Not sure if this is a Drupal issue or a CiviCRM issue, but it sure would be useful to be able to use Drupal's path aliasing functionality to address CiviCRM's less than pretty URLs.

More than purely for cosmetic and SEO reasons (although that would be plenty) I'd love to be able to target blocks at specific CiviCRM pages. Any workarounds for that?

Best wishes
Graham
Graham Mitchell
http://mc3.coop

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: Drupal path aliases
April 26, 2010, 07:39:30 am
Drupal paths aliases work, but the bigggest challenge is that they only work on paths, i.e. not query strings, and you usually want the granularity that includes the query string.

So, if you just want to include blocks on /civicrm/contribute paths, that works, and you can alias that to say, /donate, but you'll still have the query strings attached. You can't have your block only appear on one contribute page and not another.

For the purposes of advertising a donate url, for example, there are two strategies:

1. send them to a landing page that links to the actual civicrm contribute page
2. use apache to redirect a nice url to the civicrm contribute page.

 - Alan

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Drupal path aliases
April 27, 2010, 02:03:51 am
Alan

Many thanks for the advice. I'll work on the basis of the pointer you offer.

Best wishes
Graham
Graham Mitchell
http://mc3.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Drupal path aliases

This forum was archived on 2017-11-26.