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

Forums / Developing with Sitefinity / MVC Widgets for backend admin only

MVC Widgets for backend admin only

3 posts, 1 answered
  1. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    10 Jan
    Link to this post
    Is it possible to create MVC based widgets but have them available to the back end only? I.e. I want to develop a simple widget that will extract data for reporting, but this shouldn't be available to content editors only administrators. 
  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    10 Jan in reply to Jacques
    Link to this post

    Hi Jasques,

    In sitefinity u can show whole widget section for backend users only.

    When u creating widget, u need to specify SectionName. For example "CustomMVCBackend "

    Then compile and run solution. If u will go to page editor, u will be able to see this section.

    U need to  go to App_Data\Sitefinity\Configuration\ToolboxesConfig.config  and edit it.

    Find your section and add attribute  tags="backend"

    It should looks like that:

    <add title="CustomMVCBackend" name="CustomMVCBackend " tags="backend" >

     

    Then restart and go to page editor again. Section "CustomMVCBackend" will be not available for frontend pages, for backend pages only

     

     

    Answered
  3. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    10 Jan in reply to Victor Leontyev
    Link to this post
    Perfect! Thanks Victor
3 posts, 1 answered