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 Profiles (Moderator: Dave Greenberg) »
  • profile search forms in Drupal block
Pages: [1]

Author Topic: profile search forms in Drupal block  (Read 1714 times)

areaten

  • Guest
profile search forms in Drupal block
October 02, 2009, 06:16:05 pm
Hi,
I want to add a cut-down profile search form to a Drupal block.
I tried copy and pasting the source html of the Civicrm search page for the profile (www.mysite.com/civicrm/profile?reset=1&gid=3) into a Drupal block. Not the html of the standalone form but the html of page you use to search with the profile.

but upon using the form in the block I get a non-recoverable error, I believe it's session related, qfKey not generated or something.

Is there a correct way to do this for profile search forms?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: profile search forms in Drupal block
October 02, 2009, 09:23:12 pm
I dont think there is an easy way of doing so in v3.0 and below. You might want to construct the html dynamically and put it in the block. This generates the qfKey as needed etc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

areaten

  • Guest
Re: profile search forms in Drupal block
October 03, 2009, 05:33:20 pm
Thanks for the reply lobo.

I don't know php I'm afraid, do you have any pointers for generating the html form dynamically? I'm guessing what I need will be in a template file somewhere?

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: profile search forms in Drupal block
October 04, 2009, 06:09:38 pm
Other option that may not require any php is to use Views - depending on what fields etc you are using.
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • profile search forms in Drupal block

This forum was archived on 2017-11-26.