4

I am trying to work out how to use a profile to allow a registered member of an organisation/registered user of a Wordpress site, to access/view their own information and edit certain fields.

In theory this appears to be possible, but even though I've used profiles quite a lot over the years, I can't work out how to do this.

Ideally the user would login to the front end of the website (not the backend/dashboard), view their own membership details, view/edit their personal contact details, but not have access to any other details.

The part I don't understand is how the User Contact ID would be populated to the profile in such a way as that contact's information was automatically selected after login.

Or would this all be done more easily using the CiviCRM API and a bit of programming?

1 Answer 1

3

Maybe this is what you're asking for:

Create a new profile. Call it something friendly for the user like "My Contact Details". Tick it as a "Standalone Form or Directory" Fill it with the fields you want the user to edit.

Pick the page you want them to be accessible and edit it. Use the CiviCRM button to pick the profile or enter in the shortcode yourself.

It should similar to,

[civicrm component="profile" gid="123" mode="edit" hijack="0"]

When a user is logged in, this will contain the fields you selected to be edited by the user.

Edit: while the anonymous visitor will not see the profile fields until he/she is logged in, I guess it'd be good practice to make the wp page private to avoid any slips and keep the design fluid - or use a plugin to limit the page to logged in users.

1
  • 1
    This does the trick. For some reason the documentation just doesn't really seem to explain how simple this is to do.
    – fred2
    Commented Mar 1, 2018 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.