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) »
  • Public Search Results Listing tied to a Joomla Menu ITem
Pages: [1]

Author Topic: Public Search Results Listing tied to a Joomla Menu ITem  (Read 1629 times)

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Public Search Results Listing tied to a Joomla Menu ITem
March 16, 2011, 07:44:36 pm
Is there a way with Joomla/Civi, when creating a new "Menu Item", "Internal Link", "Civi-Crm", "Profile Search Form", "Select Profile" to change this so that on initial display of the new "Menu Item", the search results displays by default and not the search profile form?

I can do this by creating a Menu Item that points to an External Link, but that causes some wierd results with any Sub Menu Items Immidiately before and imadiately after a Menu Item that is created as an External Link.

This may be a Joomla issue, which I am still testing.

Just wondering if there is a way to force the Internal Link to display the results instead of the form, since I can not modify the Link Field after selecting it as an Internal Link.

Thanks!

D

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Public Search Results Listing tied to a Joomla Menu ITem
March 17, 2011, 06:48:36 pm
I was not aware of how to do this, but my programer figured it out.

To publish the Search Results based on a Profile:

set the internal link type as Civicrm->Profile Search Form
Then in the right side in the parameters column, set your profile to the listing you want to use, then open the Parameters (Extended Query Strings) section and set two values, force = 1 and reset = 1 and it works as a listing if the profiles configured correctly.

Much thanks to AK at Web Sites Revolt

D

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Public Search Results Listing tied to a Joomla Menu ITem
March 17, 2011, 07:26:26 pm
A Little bit of clarification on this.

This will work if the Menu Item is a Joomla Main Menu Item.

We are having difficulty making this work for a Sub Menu Item.

So If I have "Staff Listing" as a Main Menu item, works.

But if I put "Staff Listing" as a Sub Menu to "About Us", only presents the Profile Search Form, not the results.




Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Public Search Results Listing tied to a Joomla Menu ITem
March 17, 2011, 08:45:17 pm
So upon further testing (I will probably need to test on the demo site, but haven't had time), I can create a Top/Main Level Menu item and display search result listings using a profile and even presort the results on any column that is being displayed using the Extended Query String.

So on a main menu item I point to a Profle Search Form, Selected the Profile in the Basic Paramteres Drop down then added the following extended query fields

force = 1
crmSID = 2 (Sorts on colum 2)
reset = 1

Save, go to the front end, there is my listing.

Go to a sub menu and apply the same settings and we get this error:
Sorry. A non-recoverable error has occurred.
Could not find the required contact id parameter (id=) for viewing a contact record with a Profile.
Return to home page.


So what would be the difference between a Main Menu Item and a Sub Menu Item?

We need to publish a lot of Civi search results linked to sub menu items so our main menu isn't so long.

If any one has any idea's, would greatly appreciate it.

Thanks!

D

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Public Search Results Listing tied to a Joomla Menu ITem
March 17, 2011, 09:14:18 pm
So getting back to using External Links as Sub Menus to display profile search results, I believe this is a Joomla issue and not a civi issue.

I created an External Link and pointed it to a Joomla Arcticle, same result.

Selecting the Sb Menu Item, Collapses the Menu Item you clicked on, which is just an irriating issue, still works.

But I really want to explore the Sub Menu Item pointing to Profile Search Form to display results.

It's really cool that I can presort the results using the Extended Query Settings. We have a couple of lists that need to be sorted on other than name or display name. One sorts on Title which is the 3rd column and sorts on a Custom Rich Text Field where I have used hidden text to force the sort order.

I just need all these lists on Sub Menus.

D



Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Public Search Results Listing tied to a Joomla Menu ITem
March 21, 2011, 08:37:09 am
I was able to resolve the described issue. I f you are publishing Civi Search Results to the front end using a Profile Search Form, add the following items to the Extended Query Fields

reset = 1
gid = What ever is the Group ID of the profile being used
force = 1

IF you want the search results pre-sorted on a specific column add
crmSID = Column number to sort on.

D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Public Search Results Listing tied to a Joomla Menu ITem

This forum was archived on 2017-11-26.