More in this section

Forums / Developing with Sitefinity / Set default WrapperCssClass on ContentBlock_MVC widget

Set default WrapperCssClass on ContentBlock_MVC widget

2 posts, 1 answered
  1. Simon
    Simon avatar
    0 posts
    Registered:
    25 Feb 2016
    09 Jun
    Link to this post

    Hi,

    How do you add a default WrapperCssClass so that the content administrator doesn't have to keep adding the same class as they drag on the ContentBlock_MVC widget? 

    Would I need to modify the widget template following something like this:

    http://docs.sitefinity.com/feather-modify-widget-templates

    If so what would the .cshtml file look like?

    Thank you

    Simon

     

    Answered
  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    09 Jun in reply to Simon
    Link to this post

    Hi Simon,

    Default.cshtml should looks like this: https://github.com/Sitefinity/feather-widgets/blob/master/Telerik.Sitefinity.Frontend.ContentBlock/Mvc/Views/ContentBlock/Default.cshtml

     

    You can just download it from github, place it in correct folder, and modify it as you want

2 posts, 1 answered