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) »
  • Reorder accordions on Adv Search screen
Pages: [1]

Author Topic: Reorder accordions on Adv Search screen  (Read 323 times)

allenthehusband

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • PHP version: 5.3
Reorder accordions on Adv Search screen
July 23, 2014, 03:04:54 pm
We are trying to re-order the accordion items on the Adv Search screen.  We thought the place to do it was through Administer > System Settings > Option Groups > Advanced Search Options.  However, changing the weight of the various items in that screen (and flushing the cache) doesn't adjust the order on the Advanced Search screen.

Does anyone know 1) how to change the order of the accordion items on the Adv Search screen and 2) what the 'weight' field on the Adv Search Options screen actually changes?

Thanks!!!

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Reorder accordions on Adv Search screen
July 24, 2014, 07:56:29 am
Hi Allen,

I've never noticed that was an option group - so I can't speak to whether there's a UI-based way to reorder the advanced search.  It hadn't occurred to me that there might be!

I would handle it with a jQuery snippet, personally.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

allenthehusband

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • PHP version: 5.3
Re: Reorder accordions on Adv Search screen
July 26, 2014, 01:10:35 pm
Many thanks, Jon!

For reference, I added the below to my Advanced.extra.tpl in CRM/Contact/Form/Search:
Code: [Select]
cj("div.crm-custom-accordion").insertBefore("div.crm-location-accordion");
cj("div.crm-demographics-accordion").insertAfter("div.crm-custom-accordion");
cj("div.crm-relationship-accordion").insertAfter("div.crm-demographics-accordion");

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Reorder accordions on Adv Search screen

This forum was archived on 2017-11-26.