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?
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" %}
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:
For displaying a members Orders and Cases, it’s a little different:
THanks Megan - I’ll try that.
Thanks Adam - I’ll have a play with that.