New: Join the N2CMS chat on Telegram: https://t.me/joinchat/AAAAAA4oUpeYPAMOVGhGuw
N2CMS is a lightweight CMS framework. With just a few strokes of your keyboard a wonderful strongly-typed model emerges complete with a management UI. You can spend the rest of your day building the best site imaginable.
It's so .NET! With N2CMS, you build the model of the data that needs to be managed using C# or VB code in Visual Studio. The type below is picked up by the N2 engine at runtime and made available to be edited. The code uses an open API with multiple built-in options and unlimited customization options.
All you have to do is design your model class (inherit N2.ContentItem) and define which properties are editable by adding attributes
// [RootPage()] - use this if you want this page type to be a "Root page" // [StartPage()] - use this if you want this page type to be a "Start page" [PageDefinition(TemplateUrl = "~/my/pageitemtemplate.aspx")] public class PageItem : N2.ContentItem { [EditableFreeTextArea] public virtual string Text { get; set; } }
For a quick start, follow these instructions, which assume that you are using ASP.NET MVC + Razor (the "Dinamico" template pack -- see below for details).
Create a new, empty Web Application Project in Visual Studio 2012 or 2013.
Go to Tools > Library Package Manager > Package Manager Console
In the Package Manager console run the following commands:
Install-Package N2CMS.Dinamico
Install-Package N2CMS.Management
Configure database, e.g. SqlLite for small sites:
Install-Package N2CMS.Config.SQLite
Run your Web Application Project and follow on-screen advice.
A tip on selecting root and start nodes: StartPage single node is usually good enough for simple sites, RootPage and LanguageIntersection two node configuration is a good choice for multilingual sites (add localized StartPages later).
Please note, N2CMS supports the following ASP.NET view engines:
It is NOT ENOUGH to install just the N2CMS
package. If you use the N2CMS standalone NuGet, you still need either N2CMS.Dinamico or N2CMS.MVC NuGet for it to work properly.
Detailed installation instructions are available at: https://github.com/n2cms/n2cms/blob/master/README_SETUP.md or in our documentation wiki: https://n2cmsdocs.atlassian.net/wiki/display/N2CMS/Getting+Started+using+N2CMS
For development ("bleeding edge") packages, you can add our MyGet feed to your NuGet package manager. Please follow the instructions in NuGet documentation for doing this. Here are the feed URLs:
You can use the API within your methods and properties to develop advanced content manageable features.
public void DoSomeStuffWithSomeItems(DateTime minDate, DateTime maxDate) { IList<ContentItem> items = N2.Find.Items .Where.Created.Between(minDate, maxDate) .And.SavedBy.Eq("admin") .OrderBy.Published.Desc .Select(); foreach (ContentItem item in items) DoSomethingWith(item); }
There are more API usage examples here: http://n2cms.com/Documentation/Manipulating%20content/Finding%20content.aspx.
I want this in my project. Where do I download it?Install the Nuget package: http://www.nuget.org/packages/N2CMS/
##Where do I get more advanced documentation?
###Reference Documentation On our Confluence wiki: https://n2cmsdocs.atlassian.net/wiki/display/N2CMS/Getting+Started+using+N2CMS
We know... we need to move this to github wiki or our public site. We are the cobblers kids. Would love help if you are interested. Contact us.
We currently post them on CodePlex: http://n2cms.codeplex.com/releases/. You can also find them in the source code within this repo.
You may have to make certain configuration changes when moving the code to a hosting provider. Common issues are addressed here: http://n2cms.com/wiki/Troubleshooting-site-deployment.aspx
Clone the Source Code and Contribute to N2CMSHere you will find the N2 CMS framework and a number of template projects that demonstrate alternative ways to use this CMS. They all share a framework that consists of N2.dll and the UI management files residing below the /N2/ folder.
How do I setup my development environment?N2 CMS supports many databases, this code is set up to use the SQLite embedded database. You may want to use SQL Server or MySQL in production.
More Resources and DocumentationYou are very welcome to let us know about your build experiences in the issues so we can continue to improve things. Pull requests are also welcomed.
Frequently Asked QuestionsWhat does the N2 in N2CMS stand for? It is short for "en tva" (1-2 in swedish).
I want to create an open source project based on N2CMS. I want N2CMS to be part of branding my project. Do you have guidance on naming my project?
Yes, please use the entire project name "N2CMS" in your project name. For example, N2CMS.BootstrapBlog would be great project name. We feel that just using "N2" is too generic. Using N2CMS will help with organic search results.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4