<commit_before># N2CMS
### A Content Management System (CMS) for custom ASP.NET MVC and WebForm applications.

## How do you integrate it?

###MVC Example

Model

```javascript
function hello();
```


N2 CMS Source Code

Here 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 TO GET STARTED

1. Double-click on Prepare_AllDependencies.bat
2. Choose amount of templates (ranging from minimal example to many features in the box):
	* Examples - Minimal C#
	* Examples - Minimal Visual Basic
	* Examples - Minimal MVC
	* Src - Dinamico
	* Src - MVC Templates
	* Src - WebForm Templates
3. Choose between N2.Everything.sln to open everything, or venture down the 
   directory structure of Src or Examples and open a solution down there.
4. Find the Visual Studio solution explorer find the web project you chose (2.), 
   right-click on it and select "Set as StartUp Project".
5. Set the a web site project as startup project (N2.Templates.* or Dinamico in src)
6. Compile and run (Ctrl+F5)



WHERE TO FIND INFORMATION

* http://n2cms.codeplex.com/releases/ (Download N2 CMS 2.x Developer Documentation)
* http://n2cms.com/Documentation.aspx
* http://google.com
* http://n2cms.codeplex.com/Thread/List.aspx
* http://n2cms.com/wiki/Project-life-cycle.aspx



ABOUT DEPLOYMENT AND HOSTING

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



ABOUT DATABASES

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.



FEEDBACK

You are very welcome to let me know about your build experiences in the 
forum so I can improve things.<commit_msg>working on code examples<commit_after># N2CMS
### A Content Management System (CMS) for custom ASP.NET MVC and WebForm applications.

## How do you integrate it?

###MVC Example

**Model**

```csharp
[PageDefinition("My Page")]
public class MyPage : N2.ContentItem
{
	[EditableFreeTextArea]
	public virtual string Text { get; set; }
}
```

**View**

```html

```

###WebForm Example

Class

```csharp
[PageDefinition("My Page", TemplateUrl = "~/MyPage.aspx")]
public class MyPage : N2.ContentItem
{
	[EditableFreeTextArea]
	public virtual string Text { get; set; }
}

```



##Source Code

Here 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 to setup your development environment

1. Clone this repo.
2. Double-click on Prepare_AllDependencies.bat
3. Choose amount of templates (ranging from minimal example to many features in the box):
	* Examples - Minimal C#
	* Examples - Minimal Visual Basic
	* Examples - Minimal MVC
	* Src - Dinamico
	* Src - MVC Templates
	* Src - WebForm Templates
4. Choose between N2.Everything.sln to open everything, or venture down the 
   directory structure of Src or Examples and open a solution down there.
5. Find the Visual Studio solution explorer find the web project you chose (2.), 
   right-click on it and select "Set as StartUp Project".
6. Set the a web site project as startup project (N2.Templates.* or Dinamico in src)
7. Compile and run (Ctrl+F5)


> Heads up
> 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.

##Resources and Documentation

* http://n2cms.codeplex.com/releases/ (Download N2 CMS 2.x Developer Documentation)
* http://n2cms.com/Documentation.aspx
* http://google.com
* http://n2cms.codeplex.com/Thread/List.aspx
* http://n2cms.com/wiki/Project-life-cycle.aspx



##Helpful tips

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







FEEDBACK

You are very welcome to let me know about your build experiences in the 
forum so I can improve things.
{'fraction_non_alphanumeric': 0.07820840102111859, 'fraction_numerical': 0.011139475516361104, 'mean_word_length': 3.897727272727273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3451029', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1253, 'n_words': 571}