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) »
  • Custom Edit Form link
Pages: [1]

Author Topic: Custom Edit Form link  (Read 1383 times)

ThePayIsLousy

  • Guest
Custom Edit Form link
April 07, 2009, 04:29:41 pm
I'm trying to get up-to-speed...

I have created custom fields and a new profile.  According to http://wiki.civicrm.org/confluence/display/CRMDOC/Linking+Profiles, I s/be able to define a link (say, in a Drupal front page story) that brings up a custom edit form using that profile:  <site root>/civicrm/profile/edit?reset=1&gid=N

I found a similar note on the Profile page:  Contact Edit Forms - Allow authenticated users to edit their own contact info with a Profile using the following path: <site root>/civicrm/profile/edit?reset=1&gid=3. (This example links to an edit form for Profile ID 3.)

Since there is no "profile" directory under www.xxxxxxxxx.com/drupal/site/all/modules/civicrm, I'm obviously missing something.  Have anything to do w/ clean URLs magic or some other bit of htaccess/server config wizardry?  Could anyone supply a working example that I can dissect?

Sorry if this is an elementary question -- I read all four pages of headlines before I posted. 

Thanks,

   Mike

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 Edit Form link
April 07, 2009, 10:00:38 pm

1. urls dont need to (and will typically) not map into directory files. the mapping is determined by the menu tables (for both drupal and civicrm)

2. check http://civicrm.org/architecture/ to get a better idea of the structure and architecture of civicrm

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

ThePayIsLousy

  • Guest
Re: Custom Edit Form link
April 08, 2009, 03:35:23 pm
Thanks, lobo -- these did help me understand the directory layout:
http://civicrm.org/node/91
http://civicrm.org/node/93

I figured out how to go into the Drupal settings and enable clean URLs so that the CiviCRM <site root> documentation example makes sense to me.

Spent a decent amount of time trying to set up a custom edit form, but ran into several problems.  It's as if a custom edit form is a special type of kludged search listing.  Or, perhaps I misunderstand and there is supposed to be a connection between custom edit forms and search listings.

-- Pressing cancel on the custom edit form gives me this: "No fields in this Profile have been configured as searchable. Ask the site administrator to check the Profile setup."  [If I have one field set to searchable, pressing cancel brings up a search criteria screen.  Equally odd.]

--Pressing save works, but displays a "Back to listings" link .  Clicking on the link brings up "No fields in this Profile have been configured to display as columns in the listings (selector) table. Ask the site administrator to check the Profile setup." 

--So, setting one field searchable gets rid of the error msgs, but causes nonsensical behavior.

--And, strangely, I can access a custom edit form when not logged in.  I wonder where the saved record goes?  I expected some kind of a "you are not logged in" error msg -- unless I got the wrong impression from the documentation that custom edit forms are only for authenticated users?  Once I save it, I can't access the form again until I log in.  Perhaps it's just an oddity that would go away if I opened up a new browser window instead of accessing the form after I log out -- didn't try that.


In any case, it seems the simpler solution for me is to re-think my plan to post a custom edit profile link in a front page story.  Instead, I'll just direct users to log in, choose My Account and edit the appropriate profile.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Custom Edit Form link

This forum was archived on 2017-11-26.