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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • civicrm_uftool - Pretty URLs and tokens for profiles
Pages: [1]

Author Topic: civicrm_uftool - Pretty URLs and tokens for profiles  (Read 993 times)

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
civicrm_uftool - Pretty URLs and tokens for profiles
April 17, 2011, 06:37:10 pm
I've been kicking around a project plan that would involve using profile forms in a new way, so I wanted to experiment with the profile API for a few hours. This is just the experiment, but it might useful for a few other folks.

Basically, the civicrm_uftool module provides two features that make it easier to publish links to profile forms:

1) Assign a true "pretty" URL to a profile form; the page appears in the Drupal menu, and it doesn't involve any redirects.

2) Generate a friendly mail-merge token for hyperlinking to a profile form. In composing an email, a user can insert the token without worrying about domain names, profile ID's, checksums, etc.

Installation:

1) Download http://arms.dl.locker10.com/devel/civicrm_uftool-2011-04-17.tar.gz

2) Extract in sites/all/modules

3) Enable the module

4) Navigate to /admin/build/civiprofile

5) For any forms that should be published in Drupal, specify a path name.

6) For any forms that should be easily incorporated into emails/templates, specify a token name.

7) If deploying on an older CiviCRM release, you may need to toggle the advanced options at the bottom. These are work-arounds for minor API variations.

I know of a few minor bugs that can arise if you delete or rename profile forms (b/c it doesn't get a notification about those events), but the main functionality should be OK.

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: civicrm_uftool - Pretty URLs and tokens for profiles
September 04, 2011, 10:15:54 pm
Hi Totten - looks like a useful contribution - for giving a nice link to a Profile etc it works great from what i can see. And the checksum pain-saving token is nice too.

Probably worth clarifying that this does not help with Contribution and Event pages - which is where we hit the pain-point eg for /donate - ie won't help on forms that include a Profile as opposed to links that are direct to the profile.
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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: civicrm_uftool - Pretty URLs and tokens for profiles
September 04, 2011, 11:52:52 pm
Hi,

Interesting indeed. Would be great if the default urls (as generated by civi  - civicrm/profile...) are 'translated' too. As all (almost all?) url generation go through the same crmURL, should be simple hook to add there, wouldn't it?

X+

P.S. would be interested to replace civicrm/contact/view?reset=1&.... by something easier for the eye, civi/contact/42 and civi/edit/42 (miss moneypenny complains that it's too long to type ;)

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • civicrm_uftool - Pretty URLs and tokens for profiles

This forum was archived on 2017-11-26.