1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / sitefinity as an intranet - users / departments / office locations etc

sitefinity as an intranet - users / departments / office locations etc

7 posts, 0 answered
  1. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    01 Feb 2010
    Link to this post
    Hi

    I'm looking at using sitefinity for a company intranet, however, one of the core requirements is to extend the users section to allow them to be assigned to offices/cities etc (see attached diagram)

    It would be good to know the best way to acheive this type of functionality and how it may work in the backend, as this will be used heavily, and needs to be user friendly

    I dont think the CMS is far from being an intranet application so it would be good to have a solution to this that the community could use

    thanks in advance!

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Feb 2010
    Link to this post
    Hi Meister,

    Thank you for using our services.

    What you are looking for can be easily implemented using user profiles and roles. Depending on what you want to use this information for (permissions, etc) you can create different roles with different permissions throughout the website. If you just need to store information whether a user is from a particular city/branch etc. you can just add new profile fields. However if you wish for example users from particular branch to be able to view only a particular set of pages, then users from the same branch but say on position 1 to be able to create pages, and users from position 2 to approve/publish pages you can create roles for each unit you want to assign users to. Information about Membership, roles and Profiles can be found in the Security section of our developer manual:

    Security Overview

    You should also take a look at the following webinar for more information on the topic: Sitefinity Membership & Role Providers

    All the best,
    Radoslav Georgiev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    02 Feb 2010
    Link to this post
    Thanks Radoslav

    Permissions would be role based, and not part of where they are located (i.e it will be admin/manager)

    I would need the ability to show all staff in a particular branch, and staff could be assigned to multiple branches.
    So would the approach you are suggesting work well, or should i consider another solution within sitefinity?

    Thanks
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Feb 2010
    Link to this post
    Hi Meister,

    You can utilize the roles not only for permissions. You can use them exactly for what you are looking for. Since a user can belong to more than one roles you can assign users to branch roles, and other kinds of roles. Then you are able to get users by one role, or users belonging to a set of roles.

    Greetings,
    Radoslav Georgiev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  5. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    02 Feb 2010
    Link to this post
    Thanks Radoslav
    I've just watched the Video, which is great

    Adding custom fields for users seems very easy, from the video it looks like I could add all the cities/branches to the config file so they appear in a dropdown box, and you simple select which one is relevant when adding a new user,

    However, in my case, I need something a little more involved, so wonder if this solution still fits with these problem areas:
    1) A user maybe assigned to many branches
    When adding a user, i'd need the ability to select the branch (from a dropdown) 
    But if they belong to more than 1 branch, ideally i'd have a "Add another branch" link which shows another branch drop down (there could be a lot of branches they are assigned too.

    2) Cities and Branches are related, so when adding a user, if I select London, i'd need to show all branches in the London area.
    in fact, this functionality will be all over the intranet front end, not just when adding users in the backend.
    Would the approach you suggested be suitable for storing information this way, or should i look at something more custom? for the linked Cities and branches

    3) I'd need to be able to manage cities and branches through the backend, and not by editing the config.

    I'm not sure if its possible, but would it be easier if I split out the functionality so that after you create a user, you then move onto a section that assigns the user to a cities/branches, and just use the userguid to store in a table etc

    i'd really appreciate your advice on getting this bit right as the foundation of the intranet will be built on it.

    thanks again!



    should i store in config or is it worth storing these in a new table?

  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Feb 2010
    Link to this post
    Hi Meister,

    This can be done with Related RadComboBoxes. Attached is a sample, where you can take a look at how it can be achieved. In the sample I have used predefined values, however you can get those from a data table as in this demo. You will have to add City and Branch profile properties.


    All the best,
    Radoslav Georgiev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  7. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    03 Feb 2010
    Link to this post
    perfect thank you very much Radoslav
Register for webinar
7 posts, 0 answered