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) »
  • Edit/View profile info, not system info, from a profile page (demo site links)
Pages: [1]

Author Topic: Edit/View profile info, not system info, from a profile page (demo site links)  (Read 715 times)

joemaine

  • I post occasionally
  • **
  • Posts: 114
  • Karma: 3
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.14
  • MySQL version: 5.1
  • PHP version: 5.2
Edit/View profile info, not system info, from a profile page (demo site links)
July 26, 2012, 02:58:36 pm
I'm using a profile form to control access and would like to send users to a profile edit form, not to the system contact view/edit page when they view their profile. As an example:

http://drupal.demo.civicrm.org/civicrm/profile?force=1&gid=2 --- links enable a contact to view or edit their own profile page (http://drupal.demo.civicrm.org/civicrm/profile/edit?reset=1&id=31&gid=2)

http://drupal.demo.civicrm.org/civicrm/profile/view?reset=1&id=31&gid=2 --- the profile page link (Supporter Profile) takes the user to the system contact page (http://drupal.demo.civicrm.org/civicrm/contact/view?action=view&reset=1&cid=31) - not to the profile pages (view or edit).

I would like to find the template (and any code if needed) that controls the link from (http://drupal.demo.civicrm.org/civicrm/profile/view?reset=1&id=31&gid=2) and edit it to direct them to (http://drupal.demo.civicrm.org/civicrm/profile/edit?reset=1&id=31&gid=2)

...help??

...of course none of this matters if the permissioning isn't set up on that page for a user to have an edit link available to them...
--
Joe

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: Edit/View profile info, not system info, from a profile page (demo site links)
July 26, 2012, 03:41:40 pm

check:

templates/CRM/Profile/Page/

You should definitely read the developer book at http://book.civicrm.org/

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

joemaine

  • I post occasionally
  • **
  • Posts: 114
  • Karma: 3
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.14
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Edit/View profile info, not system info, from a profile page (demo site links)
July 26, 2012, 03:50:57 pm
I've looked through the 4 templates in that folder, edited where needed, and established folders:
civicrm_templates/CRM/Profile/Form/13
and
civicrm_templates/CRM/Profile/Page/13

...just can't find where the title link is coming from.
--
Joe

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: Edit/View profile info, not system info, from a profile page (demo site links)
July 26, 2012, 07:01:44 pm

check:

CRM/Profile/Page/Dynamic.php
CRM/Utils/System/Drupal.php

you can potentially override this in your own module via drupal_set_title

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

joemaine

  • I post occasionally
  • **
  • Posts: 114
  • Karma: 3
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.14
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Edit/View profile info, not system info, from a profile page (demo site links)
July 26, 2012, 09:20:00 pm
Thanks Lobo,

I had quickly checked out dynamic.php but not drupal.php. I've set up views as a temporary solution...I'll check out drupal.php.

I think part of my problem is setting up custom organization pages and giving edit access to authorized-relationshipped individuals. Views offers a great deal of flexibility to open up information and links without granting "access CiviCRM" permissions in Drupal (or inserting php).
--
Joe

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Edit/View profile info, not system info, from a profile page (demo site links)

This forum was archived on 2017-11-26.