Log in

View Full Version : Linking profile page to nav tab


Micolai
06-01-2020, 03:46 AM
So, I'm trying to make a tab in the navigation drop-down that is a user's profile and link the profile page to that tab instead of having to go into your account to click the profile link every time. How do I link it though? I've tried view, profile, profile/view, but it's wanting me to add the user's username, but I need it to work for everyone. Is this possible?

Hall of Famer
06-01-2020, 09:19 AM
In general you can create navlinks easily with admin control panel, but this is a bit tricky since the profile page uses the user's username by default which is a dynamic value that changes for each user.



To achieve this, the simplest solution is to create an arbitrary link like http://yoursite.com/profile/myprofile to http://yoursite.com/profile/view/{your username}.

Micolai
06-07-2020, 11:29 PM
In general you can create navlinks easily with admin control panel, but this is a bit tricky since the profile page uses the user's username by default which is a dynamic value that changes for each user.



To achieve this, the simplest solution is to create an arbitrary link like http://yoursite.com/profile/myprofile to http://yoursite.com/profile/view/{your username}.

Thank you. Turns out I was just using urls wrong lol.