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

Forums / Project Feather / Bootstrap++

Bootstrap++

2 posts, 0 answered
  1. Bil
    Bil avatar
    51 posts
    Registered:
    27 Aug 2012
    08 May 2015
    Link to this post

    Hi guys,

    A couple of things about the bootstrap template in feather.

    The default layout file seems to be okay (I'm just getting used to sitefinity required markup and was thrown off by things like sfPublicWrapper and such) and clean. All user content would go into the Html.SfPlaceHolder("Contentplaceholder1") which is fine but I'm wondering how you would populate (from the Sitefinity backend) the Html.Section("top") and Html.Section("bottom")?

    It would make sense that you would put navigation in the top section and a footer in the bottom, but once you use the layout you can only add content to the placeholder so it seems the @Html.Section directives are ignored. There's also a @Html.Section("head") which would be great for custom CSS styles on the bootstrap template, but again I see no way in the web UI to change this or even a way to expose it for a designer to use it (like the default sitefinity CSS widget).

    Finally I'm wondering about modifications to the bootstrap ResourcePackage. There are a few gaps with regards to bootstrap (not all components are here, some layouts/grid elements are missing, etc.). Is it better to create a new ResourcePackage (using Bootstrap as a starting point) and modify that in order to survive an upgrade of feather?

    Thanks

  2. Mariush
    Mariush avatar
    43 posts
    Registered:
    08 Aug 2014
    08 May 2015 in reply to Bil
    Link to this post

    Hi Bil,

    Please see the following article for details how to register scripts and styles in sections:

    https://github.com/Sitefinity/feather/wiki/Refer-to-resources-inside-MVC-views

    About customizing Bootstrap - making your own custom package is the best approach. Your feedback and suggestions for improving the default packages would be most welcome.

    Mariush

2 posts, 0 answered