More in this section
Forums / Developing with Sitefinity / Set default WrapperCssClass on ContentBlock_MVC widget

Set default WrapperCssClass on ContentBlock_MVC widget

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.
2 posts, 1 answered
  1. Simon
    Simon avatar
    0 posts
    Registered:
    25 Feb 2016
    09 Jun 2017
    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 2017 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