More in this section

Forums / Developing with Sitefinity / Making Events editable per Category / Role

Making Events editable per Category / Role

2 posts, 0 answered
  1. Daniel
    Daniel avatar
    10 posts
    Registered:
    08 Apr 2008
    23 Jun 2008
    Link to this post
    Our client has 300 physical stores and wants 1 page on their web site per store.  On that page, they need a list of event specifically for that store.  There is a role for the store manager of that store:  Store1Manager; Store2Manager etc.  What we need is a way such that someone in role Store1Manager can  list, create, edit and delete events for Store 1 but cannot do either for Store 2.  Similarly for all other store managers.  As far as I can see, it's not possible for us to create an event list for a specific store, so we are thinking of using Categories to filter.

    One solution we are proposing is:
    - Create a Category for each store:  "Store1Category"
    - edit the admin side control that lists events and automatically set the filter to "Store1Category" if the user is in role "Store1Manager"
    - in the store page itself, add the Event View control and set the Advanced > Data to filter by that store's category.

    Do you think this is a good approach?  Would you recommend another, less hacky solution?
  2. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    25 Jun 2008
    Link to this post
    Hello Daniel,

    This scenario is achievable but would involve coding effort for creating a custom module. The Events Module does not have such built-in functionality and for this purpose you would have to create a module with similar functionality to the one used in Blogs. There you can restrict the blogs appearing based on users permissions, so that one user can see only his/her blogs. The functional part for the new module would be the same so that Shop Managers would have permissions to see only their store events.

    Kind regards,
    Nikifor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered