More in this section

Forums / Developing with Sitefinity / Identify which portal

Identify which portal

5 posts, 0 answered
  1. Jenn Bohm
    Jenn Bohm avatar
    17 posts
    Registered:
    19 Aug 2009
    22 Oct 2009
    Link to this post
    Hello all. We are using Sitefinity 3.7 to create multiple portal sites for different members. Each of them has a 5 digit ID. For some modules I'm developing, I need to be able to get this 5 digit ID in order to pull the appropriate data to display for each site. Any suggestions on how to implement this?

    * edit - This is not the same as identifying who is logged in. Whether anyone is logged in at all doesn't matter, I just need to know whose site is being viewed.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    22 Oct 2009
    Link to this post
    Hi Jenn Bohm,

    I think you can use session, cookies or query string to pass the data, but it will depends on the way that you will use to identify the users.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Jenn Bohm
    Jenn Bohm avatar
    17 posts
    Registered:
    19 Aug 2009
    26 Oct 2009
    Link to this post
    My problem is that I have no idea how to identify which site is being viewed, from the module code. This module will be created in a site which will become a template for all the portal sites. 
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    30 Oct 2009
    Link to this post
    Hi Jenn Bohm,

    Do the portals are in the same application? How they are configured - as one or several applictiosn? Generally the cookie is based on the domain name so it can be easily used.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    31 Oct 2009
    Link to this post
    Hi Jenn,

    Could you try storing in UserProfil some properties like userlogged, pageviews and more. In your Module test this properties from profil before render your solution. For me is working great.
    Regards Romi
Register for webinar
5 posts, 0 answered