Ability for logged in member to update their details

Is it possible for logged in members to update their own record in a custom module? Are there any instructions anywhere on how to achieve this?

Also is it possible to display all the member cases and orders when the member is logged in?

@doodlefish there are some instructions on {{ member }} object use https://docs.treepl.co/liquid/member-object.

I did this on a secured profile page to allow users to update their details with a custom module built for Members.

Use the form build in SECURE ZONES -> Update account form to build your form “YourLayoutName” in the custom module for users to update their details.

On the page where user updates their details, I added below module code filtering with a named field “MemberEmail” -

{% component source: "YourCustomModule", layout: "YourLayoutName", filterBy: "MemberEmail", filterValue: "{{request.currentmember.Email}}", limit: "1", type: "module" %}

1 Like

Regarding the display of member items; as well as filtering by the members email, you can also use the module_of_member option in “module” type components:


Docs: https://docs.treepl.co/component-types/module-custom-modules

For displaying a members Orders and Cases, it’s a little different:


See docs:
https://docs.treepl.co/component-types/orders
https://docs.treepl.co/component-types/cases

2 Likes

THanks Megan - I’ll try that.

Thanks Adam - I’ll have a play with that.