Support for themes in MVC4

MVC4 has a folder called Content / Themes / Is there a wait to create any new themes under this folder? Is the default MVC4 theme called BASE because there is a folder under Content / themes / called the same.

+5
source share
3 answers

The Themes folder in MVC is just a jQuery user interface function and is not MVC specific. MVC itself has no real support for the "theme."

You can find additional topics in the form of NuGet packages from the NuGet feed: http://nuget.org/packages?q=Tags%3A%22jQueryUI%22+themes

+2
source

- , MVC.Forum ~/ View Engine ForumViewEngine, . , :

protected void Application_Start()
    {
...
        // Set the view engine
        ViewEngines.Engines.Clear();
        ViewEngines.Engines.Add(new ForumViewEngine(defaultTheme));
...
}

defaultTheme - ~/, .

+2

MVC4 Content/themes/Is the expectation, ?

. jquery MVC, . , jQuery UI, , . , , css script. , BundleConfig.cs App_Start. , , , .

If you are thinking about how Themesweb forms are executed in MVC, you can use layout pages and css files to define different themes for different situations / scenarios for your site.

+1
source

All Articles