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 Joomla Extensions (Moderator: lcdweb) »
  • Using Serch Profile in a Registrated Area
Pages: [1]

Author Topic: Using Serch Profile in a Registrated Area  (Read 1466 times)

mcollins

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Using Serch Profile in a Registrated Area
July 28, 2010, 02:32:52 pm
I have set up a profile to allow members to search the coontacts.  I have set this up to be view after they have logon to the site.  It all works fine with one expection.  When they get the results of the search it gives them a page with the main menu and not the user menu (registrated page).  Any suggestions?

Thanks for you help.
Mary

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Using Serch Profile in a Registrated Area
July 28, 2010, 05:36:33 pm
the reason why is because CiviCRM doesn't always handle the menu's Itemid value very well. it loses it during multi-step/multi-page operations. and the Itemid is what Joomla uses to assign modules.

there's no easy fix, unfortunately.

you might want to take a look at the advanced module manager extension for joomla. depending on how you're using civi resources, you may be able to create a work around with that. for example, that extension will let you assign a module to an extension, so it shows up whenever that extension is used.

support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: Using Serch Profile in a Registrated Area
July 28, 2010, 07:14:50 pm

hey brian:

can we store/restore the itemId value via a civicrm hook? i..e u store it in the civicrm session and then u restore it on the next page?

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

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Using Serch Profile in a Registrated Area
July 28, 2010, 07:57:38 pm
what hook? or are you thinking to create a new one that injects code after an action is initiated or link is clicked? almost like an apache redirect?

it would seem weird to handle as a hook, as this would be something you'd want active on all frontend pages, not just on a select basis.

is there a location, such as civicrm.php in the joomla site folder (installed to components/com_civicrm) where all urls are routed? if so, it might be as easy as running those through JRoute (http://docs.joomla.org/JRoute), which takes care of the Itemid processing (see http://docs.joomla.org/Routing).

JRoute also processes SEF urls, but we'd probably need to do more work to define the rules for that. I think the bigger issue is better handling of the menu item.

if all links are already routed through a common location in the civi code, and you can point me there, I'll play with implementing JRoute
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: Using Serch Profile in a Registrated Area
July 28, 2010, 09:17:55 pm

all frontend urls in joomla go thru:

components/com_civicrm/civicrm.php

might want to add the needed calls to JRoute just after we do all the checks and before we do any civicrm work (in function civicrm_invoke in that file

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Using Serch Profile in a Registrated Area

This forum was archived on 2017-11-26.