Newbie dropdown menu doubt

I am creating my own login drop down menu. Basically it should work just like the standard menu. I have 2 problems:

  1. The problem is that i dont really know how to redirect the user to another page when they choose an option.
  2. the second think is that i just wanted to show the dropdown button if the user is logeed in.

Somebody can help me here?

Thank you,

  1. In order to redirect a user after they choose a dropdown option you’ll need to create an onChange function for the dropdown that will call a wix.location.to() function that should redirect them to a desired page.

  2. In order to show a dropdown only to logged in users you’ll need to check if the user is logged in by using loggedIn:
    https://www.wix.com/corvid/reference/wix-users.User.html#loggedIn
    https://www.wix.com/corvid/reference/$w.Dropdown.html#show

Angelina, Thanks a lot!!