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 (Moderator: Dave Greenberg) »
  • Custom fields group does not expand in Advanced Search from Joomla front-end
Pages: [1]

Author Topic: Custom fields group does not expand in Advanced Search from Joomla front-end  (Read 1245 times)

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Custom fields group does not expand in Advanced Search from Joomla front-end
October 26, 2012, 12:01:30 pm
When moving the Advanced Search functionality to the front-end of joomla (by copying the url from the backend and replacing administrator with index.php), the custom fields box does not expand to show all the custom fields.

Steps taken to try to fix:
1. Tried on live site, development server and fresh joomla install server
2. turned off javascript files
3. looked through log and debug files
4. tried various ACL settings
5. Could not find any documentation about this being disabled.

What I think is happening is that something is preventing the fields from even loading in the first place. The box itself expands (a little) but the code in firebug shows no content in the divs.

Attached is a screenshot

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: Custom fields group does not expand in Advanced Search from Joomla front-end
October 26, 2012, 04:02:03 pm

Note that the way civi is currently built, all the links are generated for the backend (i.e. the /administrator/ etc) for most joomla pages.

i dont think u can take  backend page and change it into a front end url and expect it to work. You will need to make a few core changes in the urls that are generated

If i had to guess, the below is not working since most of the custom fields are calling a backend ajax url and the keys dont match and/or the user does not have permission

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

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Re: Custom fields group does not expand in Advanced Search from Joomla front-end
November 02, 2012, 02:03:44 pm
Thanks Lobo.

It's definitely not a permission issue since all the testing was on superadmin. I didn't realize ajax was different on front and backend. Looks like we'll just have to work around this for now. Can you point me to alternatives options or ways to "match the keys"? (I don't know what that means sorry, I'm a newbie here in Civi.)

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: Custom fields group does not expand in Advanced Search from Joomla front-end
November 02, 2012, 03:57:01 pm
I was helping someone else with a similar issue today, and the cause of the problems he was experiencing was a javascript conflict with his site template and a jquery plugin he had installed.

I can access the advanced search from the frontend of a demo site and the panels -- including custom fields -- open with no issues.
To confirm -- try switching your site template to a Joomla default template (I was using Beez2 on J2.5). Also disable any 3rd party system plugins that may be inserting js into the page.

You can also see it working on the main joomla demo site:
http://joomla.demo.civicrm.org/?option=com_civicrm&task=civicrm/contact/search/advanced&reset=1

(you'll have to login to the frontend first)
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Re: Custom fields group does not expand in Advanced Search from Joomla front-end
November 03, 2012, 11:09:48 am
This is helpful. Thank you.

I have tried using different templates and disabling some of the javascript, but have not found the winning combination yet. I have tried also on a relatively blank installation of joomla and have found the same issue.

The demo site gives me hope, but I'm not sure where to go. I'll try another blank install and see what I can do.


--------------------------

Update #1 - I found a conflicting module on my blank install. So this looks like it is the issue. Now I need to find the conflicting module on the live site.

Update #2 - FOUND IT! The problem is this: if ANY "custom HTML" module is published, the custom fields in civi advanced search will not expand. Any thoughts here? I don't know the infrastructure of a custom html module to know why this would happen.

Update #3 - OK, it appears to be a conflict of the css id - maybe? I added a module class suffix "blank" to the custom html module and now it works. Ideas for a fix?

« Last Edit: November 03, 2012, 11:51:29 am by raustin1 »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Custom fields group does not expand in Advanced Search from Joomla front-end

This forum was archived on 2017-11-26.