How to add theme?

Oct 25, 2014 at 11:11 AM
I want to use different skin on per page.but I don't know how to do.

please guide me.
Coordinator
Oct 31, 2014 at 10:46 AM
Hello,

Simply add a folder in the Themes directory and the select it from the Site Settings tab in settings (/Admin/Settings)

You can then override the views which are used by simply putting a view in the place.

For example, say you want to override TextPage.cshtml in the core app, you should place a file here:

/Themes/MyTheme/Apps/Core/Views/Pages/TextPage.cshtml

Mr CMS will then pick up this view instead of the on in the core.

With regards to Layouts, if you are using Mr CMS 0.4.1 or earlier you set the path to these directly in the Layouts management in admin.

In Mr CMS 0.4.2 or later, you no longer set a path to a Layout. Rather you just enter the file name (I.E MyLayout). Mr CMS will then look for that layout in the shared folders with in the views directories and importantly works in the same way as other views. If you want to override MyLayout in your theme, simply put that view in place in your Theme folder and Mr CMS will use that instead.

Cheers,
Will
Marked as answer by xuey on 11/1/2014 at 6:04 AM
Nov 1, 2014 at 2:05 PM
Thanks. I'll try.
May 15, 2015 at 5:11 AM
Edited May 15, 2015 at 5:13 AM
How about resources ? ex: css, images. can i store it at "Themes/MyLayout/Content" ?