New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

Add links visible only to logged in user

Return to previous page

  • 10/3/2017
  • 2131 Views

Question:

design junk 7 years ago

Hi, I'm very new to dnn and I need to add a couple links visible only when the user is logged in. I'm not familiar with javascript or such languages and hoping this can be done via this html. Thought perhaps there would be a simple format that would check the server for user log in (logged-in=True or ID > 0). Can someone tell me if this is possible and what the format would be for adding this link? Thanks!



Top Answer:

Mark Buelsing 7 years ago

Turns out this one is pretty simple to get done (once you know how!)

Put a separate html or links module (or any module) on the page and put your links into the module. Then edit the module settings, go to the Permissions tab and clear the "All Users" "View" checkbox and then just check the "Registered Users" checkbox in the "View" column. This will only show the entire module when the user is logged in and will not show when not logged in.

Also, the links module can show individual links to registered users too. You would need to enable "Use Permissions" in the module settings. And then set your required permissions on each link you make.

Sign In to Participate
Or register to become a member