jquerytwitter-bootstrapthemesorchardcmsorchardcms-1.6

Making a copy of Bootstrap theme using Orchard CMS


I am making my own theme using Bootstrap theme from Orchard dashboard as the base theme. When I run the site using my theme(in which I have not made any changes, it is just a simple copy of bootstrap), it is giving me error : object not set to an instance of an object. In Views/User.cshtml file : var swatch = WorkContext.HttpContext.Items[Constants.UseSwatchName].ToString(); on this line.

I also tried changing all the namespace from Bootstrap to the name of my new theme, this also dint work out. Please suggest


Solution

  • I reported this as an issue to Philip Senechal, the guy who made the theme, here: https://github.com/psenechal/Bootstrap/issues/13 He reportedly has fixed these issues in the latest version of the source, so if you grab that it should work, although I haven't tested it.

    I think I fixed it by just commenting out his use of swatch stuff, but I would recommend grabbing the latest version from GitHub: https://github.com/psenechal/Bootstrap