More in this section
Forums / Developing with Sitefinity / MVC Widgets for backend admin only

MVC Widgets for backend admin only

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 1 answered
  1. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    10 Jan 2017
    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 2017 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 2017 in reply to Victor Leontyev
    Link to this post
    Perfect! Thanks Victor
3 posts, 1 answered