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) »
  • New Contribution Page Autocomplete
Pages: [1]

Author Topic: New Contribution Page Autocomplete  (Read 512 times)

rayk_sland

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 7.14
  • MySQL version: 5.1.61-0+squeeze1
  • PHP version: 5.3.3-7+squeeze8
New Contribution Page Autocomplete
August 08, 2012, 01:57:03 pm
I've been trying to see if I can get more than 10 items to show up for "Select Contact" on the "New Contribution" Page.

Extrapolating from advice on the IRC channel. I have been modifying /templates/CRM/Contribute/Form/Contribution.tpl

Following an example that was sent me at CAN'T POST EXTERNAL LINKS was able to get a different field, "Soft Credit To" to load up a comfortably long lookup.

It had to do with a cj('#soft_credit_to).autocomplete method. Only thing is there is no invoking of that method for the "Select Contact" field -- only {assign var='profileCreateCallback' value=1 } which I think is processed by Smarty, but I don't know where to go with that.

From that I'm guessing that you can assign a SearchView Profile to that field, but I can't see how to do that, or where the limit of 10 items is set.

rayk_sland

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 7.14
  • MySQL version: 5.1.61-0+squeeze1
  • PHP version: 5.3.3-7+squeeze8
Re: New Contribution Page Autocomplete
August 09, 2012, 04:02:35 pm
solved. the templates/CRM/Contribute/Form/Contribution.tpl includes templates/CRM/Contact/Form/NewContact.tpl

changed
Quote
      cj( contactElement ).autocomplete( contactUrl, {
          selectFirst : false, matchContains: true, minChars: 1

to
Quote
      cj( contactElement ).autocomplete( contactUrl, {
          max : 200, selectFirst : false, matchContains: true, minChars: 1


in NewContact.tpl

rayk_sland

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 7.14
  • MySQL version: 5.1.61-0+squeeze1
  • PHP version: 5.3.3-7+squeeze8
Re: New Contribution Page Autocomplete
August 09, 2012, 04:45:17 pm
Made up some custom template directories and am off to the races.

/var/www/overrides/civicrm/templates

NewContact.tpl is used everywhere. I think it would be good if the autocomplete function had higher defaults. I think max : 200 very reasonable.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • New Contribution Page Autocomplete

This forum was archived on 2017-11-26.