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) »
  • Front-End Joomla question
Pages: [1]

Author Topic: Front-End Joomla question  (Read 2258 times)

Basjee

  • Guest
Front-End Joomla question
June 02, 2007, 11:11:33 am
Hello there,

I read all the documentation about the front-end and joomla but I can't find an answer to my problem.
I want users to be able to view their info (profile-form) I did everything that is written here:
http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=6632

And when I use the menu item now there comes this message:

"No fields in this Profile have been configured as searchable. Ask the site administrator to check the Profile setup."

Thats true, because I don't want my users to search... I only want them to see what they've entered and if needed they can click
on edit and go to the edit page... (I know how the edit page link works...)

I hope that you get what my problem is...
Thanks for any help in advance,

Regards,
Bas

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Front-End Joomla question
June 02, 2007, 05:27:35 pm
I don't think you can currently direct a user to "view" their info in a Profile unless you explicitly pass in their contact ID...

...civicrm/profile/view?reset=1&id=102&gid=1

And I'm not sure you can configure a dynamic menu link in Joomla! (If others know how to do this, please jump in here.).

It should work if you're ok to link folks to the Edit form directly:

...civicrm/profile/edit?reset=1gid=1
Protect your investment in CiviCRM by  becoming a Member!

Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
Re: Front-End Joomla question
June 02, 2007, 07:35:28 pm
I believe the way to do this would be to create a com_menu extension.

One should be created anyway for CiviCRM to make things easier for Joomla! users to create frontend links.


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: Front-End Joomla question
June 02, 2007, 09:15:17 pm

tguill:

a code contribution for this would be great. an explanation of what the com_menu extension does and how we can incorporate it into CiviCRM would be great. We could potentially get this into 1.8 and hopefully would increase our joomla knowledge and help our joomla users :)

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

Basjee

  • Guest
Re: Front-End Joomla question
June 03, 2007, 01:20:41 am
thanks for the replies guys...
at least I know now that I didn't overlooked something!

looking forward to version 1.8 :)

I will try some things out, but Im not a pro... thanks for input dave
Conga3.com you got some more info on how to create a com_menu? thanks

EDIT// when I use this:
civicrm/profile/view?reset=1&id=8&gid=1
there comes a pop-up with "restricted access" and I am logged in (front-end) with the user id=8
just a little update ;)
« Last Edit: June 03, 2007, 01:24:35 am by Basjee »

Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
Re: Front-End Joomla question
June 03, 2007, 07:26:32 am
Quote
civicrm/profile/view?reset=1&id=8&gid=1

Change to:

civicrm/profile/view&reset=1&id=8&gid=1

I'm not sure why but it appears "civicrm/profile/view?reset=1&gid=1" to display contact list per profile, is the ONLY frontend page that uses a second '?' in the link.  It won't work with a '&' and all the others won't work using the '?'.

Big mystery.
 

RE: Menu Extension

Currently if you want to create a menu link in Joomla! to a CiviCRM page you use the "Link - URL" option and paste in the link manually.

An alternative to this is using the "Component" option, selecting the CiviCRM component from the list, applying the changes to view and edit the parameters.  I think this woul work...but it doesn't seem to be completed yet, as all it returns is (index.php?option=com_civicrm) and no task or parameters.

The BEST option would be a menu extension.  These are mods you upload into the /administrator/components/com_menus/ folder.  This mod can be installed when the component is installed.

This would allow the admin the ability to choose the link type (Profile, Dashboard, Contribution Page, etc...) and based on that choice, define the parameters of the link using drop-downs with the names of all the available items, instead of having to know the ID.

While this would be a nice addition (especially for the larger websites), this would NOT fix the issue of creating a menu link to a contacts profile in CiviCRM based on which user is logged in.

RE: User Profile Page/Edit Profile Page

To fix the issue a "Mambot/Plugin" could be created to correct the links.

So, the admin would create a menu link that purposely leaving the id parameter out:

index.php?option=com_civicrm&task=civicrm/profile/view&reset=1&gid=1

This link would normally FAIL  and give you the error message "Could not find valid value for id" without the mambot.

The mambot would see this link without the ID defined, then it would act like CiviCRM and find the contact id based on which joomla user is logged in.  The mambot would then append the parameter to the end of the link

index.php?option=com_civicrm&task=civicrm/profile/view&reset=1&gid=1&id=1

You could also probably do this with a module in a number of different ways I think.

« Last Edit: June 03, 2007, 07:30:07 am by Conga3.com »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Front-End Joomla question

This forum was archived on 2017-11-26.