I have created dynamic pages link to a Company Name and details on that Company.
What I am now trying to do is link a member to their Company only dynamic pages. I have successful created the private login using the information provided by Code Queen Nayeli (THANK YOU). Am lost as to how to continue.
Need help on how to do this.
If you have watched the below video…
https://www.youtube.com/watch?v=Orl8GJNzG5s
… or this video below…
https://www.youtube.com/watch?v=yLCOqsVHhD0
Then it is just a basic example of the Wix tutorial here.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area
If each member has their own company profile, then just link them to it by adding another button which links to their company page or simply change the location of the profile page link to your company page.
From tutorial…
When the profile button is clicked, we use an event handler to send members to their personal profile page.We add an event handler by selecting the profile button and we use the Properties panel to add a handler for the onClick event. Then we add the event handler code, which looks like this:
export function profileButton_click(event) {
wixLocation.to(`/Members/${wixUsers.currentUser.id}`);
}
Simply add another button and do the same as this with it linking to their company page or change the link above to their company page.
Thank you for your quick response. It is greatly appreciated. I did watch both videos and implemented accordingly (love these videos). That part works fine. What I was missing is how to link the user to a Company name and send them to the correct Dynamic Company Page.
I am testing the code you have suggested now.
The code is now working!!! Thnak you for your help. It helped me a lot and is greatly appreciated.