More in this section

Forums / General Discussions / User related Content

User related Content

3 posts, 0 answered
  1. Boas
    Boas avatar
    13 posts
    Registered:
    30 Sep 2008
    19 Apr 2011
    Link to this post
    Hi

    I have a page with a login control and a blog widget.

    is it possible to show only one of them on a site depending wether the user is logged in or not ?

    I'd like to show the login control when he is not logged in.-
    After he has logged in i'd like to show the blog control
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    19 Apr 2011
    Link to this post
    Hi Boas,

    You can easily achieve hiding the blog posts control for the not authenticated users - you can set permissions over control and allow only authenticated users to see it. So when the request is annonymous you will not see BlogPosts control.

    For the login control Telerik.Sitefinity.Web.UI.PublicControls.LoginControl. You should wrap it in another control and hide the LoginControl based on the request.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

  3. Boas
    Boas avatar
    13 posts
    Registered:
    30 Sep 2008
    20 Apr 2011
    Link to this post
    Great it works ! :-)

    Many Thanks !
3 posts, 0 answered