I used the docs to create a memberlist, to test out how profiles are rendered from other users: https://docs.expressionengine.com/latest/member/memberlist.html
The docs use {path:profile} as a variable to render every individual profile, thats exactly what I want, but as far as I can tell thats still the legacy way of displaying individual profiles, since that uses the _themes default profile theme and is only linked to the member list.
I want to display a custom profile page automatically when that members name is clicked somewhere on the website with all its details. An author avatar, or navigation link for example. But so far I only managed to link back to the logged in users profile (me). But I want to let me or other users view every other profile as well, directly on the website, without the legacy options and without having to manually input every individual member link whenever its needed. How would I manage that in a custom template?
Maybe someone here can point me in the right direction, since I haven’t found a way to achieve this (yet). It should basically emulate that regular persistent user profile found on community based websites.
I think the Custom Profile data tag is what you want- just pass it the member id of the person you want to see info for via a segment variable.
Does that work?
Hi Robin,
Thanks for the quick reply! That works in specific cases, but what if I want to create a custom user list or team page and want to dynamically get to the profile page of the team- or list-user I clicked on? I am a EE beginner, so maybe I am not seeing a connection between functions.
What I achieved so far is to link to either my own profile page every time (for all group/team members) or a specific profile with id. But I basically want to let expression engine handle the connection between username and the profile page its going to render without having to input an id manually.
Or is that exactly why I should use segments?
> Or is that exactly why I should use segments?
Bingo. You’ll use segment variables a lot to customize behavior.
{exp:member:custom_profile_data member_id="{segment_3}"}
{age}, {gender}
{/exp:member:custom_profile_data}
That sort of thing. Make sense?
You have to update the profile link to add member id in the member list tag .
For example below … {name} …
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.