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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Display Search Results as a Navigation Menu Item
Pages: [1]

Author Topic: Display Search Results as a Navigation Menu Item  (Read 730 times)

chapmanla

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.0.95
  • PHP version: 5.2.5
Display Search Results as a Navigation Menu Item
April 11, 2010, 06:40:51 pm
I would like to display a set of specific search results as menu items within the CiviCRM black menu bar (e.g., "Group X Contacts" is a menu item that displays all contacts that are part of Group X smart group"). I am doing this in order to avoid requiring back-end users to construct complex searches.

I am not sure what url I should insert for each menu item as part of creating the "New Menu Item" on the Customize>Navigation Menu page.  The url's generated by performing the search are not static and contain keys (e.g., option=com_civicrm&task=civicrm/contact/search&&_qf_Basic_display=true&qfKey=ed17013533ffa923e53acb540177a19f). 

Is there a different way to construct the search url?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Display Search Results as a Navigation Menu Item
April 12, 2010, 03:11:24 am
what about using the smart group link? You can link to groups...

http://sandbox.civicrm.org/civicrm/group/search?reset=1&force=1&context=smog&gid=3
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

chapmanla

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.0.95
  • PHP version: 5.2.5
Re: Display Search Results as a Navigation Menu Item
April 12, 2010, 12:51:51 pm
Thanks, Eileen.  I knew a simple url structure existed but wasn't sure of the exact construction.

Since I am using Joomla, I modified the url you referenced (which works fine for the Drupal test site) to the following relative url:

           civicrm/group/search&reset=1&force=1&gid=12&

For future reference, is there a way of forcing the display of this type of url structure vs the "key-based url"?  Or is there master documentation source of these url-based commands?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Display Search Results as a Navigation Menu Item
April 12, 2010, 12:55:00 pm
Searches use the keys as they are dynamic I guess but if you save a search (as a smart group) then the smart group does have a fixed URL (As do all groups).

Unfortunately you can't save searches of other sorts (eg. participants or contributions) but you can do quite a lot with CiviReport in this area.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Display Search Results as a Navigation Menu Item

This forum was archived on 2017-11-26.