Questions tagged [n2cms]

N2CMS is a lightweight open source content management system that runs on top of ASP.NET.

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.

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.

83 questions
0
votes
3 answers

N2cms add settings page

I want to add some settings which the admin of the site can change. First idea came to my mind is to create an N2 page called settings, and every property of this page is single setting, and each time I need to get the settings I have to search for…
Nour
  • 5,252
  • 3
  • 41
  • 66
0
votes
1 answer

N2CMS - Missing Prepare_Dependencies-vs2008.bat

I am attempting to run the sample project for N2CMS. This is required in order to run the project, but the file appears to be missing. However, my VS2008 solution file shows it. What could be going on?
smartcaveman
  • 41,281
  • 29
  • 127
  • 212
0
votes
1 answer

N2 CMS - Protected upload subdirectory?

I can add new directories to the ~/upload section of my website. Is there a built-in way to protect these directories to be accessible only by certain users/roles?
Ropstah
  • 17,538
  • 24
  • 120
  • 194
0
votes
1 answer

Field placement when editing items in N2 cms?

Working on N2 CMS I'm adding my own content type Product. I derive my Product class from ContentPageBase and I can add it in the content tree. When I edit an item however, the fields seem to be inverted (Title and Text). For all example items (e.g.…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
0
votes
3 answers

Exceptions in N2cms page

i'm using n2cms + asp.net mvc, when the site is uploaded to a webserver, and an exception is thrown in the aspx page, the page appear blank, and there is nothing in the page, even if i turned off the CustomErrors in web.config but when the site is…
Nour
  • 5,252
  • 3
  • 41
  • 66
0
votes
1 answer

N2CMS host transfer...worth it or use different CMS?

A friend asked that I help move his site from one host to another. Turns out it's a site within a CMS called N2CMS. I've never heard of this and it's been very problematic. I looked for info online and it looks like the CMS is old and barely/not…
GeekInTheBox
  • 139
  • 2
  • 11
0
votes
2 answers

N2Cms, Adding a new property to a ContentPageBase class, corrupts the already entered data

i want to modify the ContentPageBase, in a functional site, i tried to add a property called for example (weight), but if there is an existing page in the database, the site will malfunction, and throws an Exception, of (Object reference not set to…
Nour
  • 5,252
  • 3
  • 41
  • 66
0
votes
1 answer

Why am I getting 404 /N2/Api/Context.ashx

I'm using the NuGet N2CMS package. I've tried version 2.9.6.8 and 2.9.6.14( and .16) This is a fresh setup/install. When finishing the setup and navigating to /N2 I'm getting a 404 Not Found from the following: /N2/API/Context.ash?mode=full You can…
LobalOrning
  • 107
  • 2
  • 4
  • 13
0
votes
1 answer

Can I render an N2 CMS page as part of another normal MVC Razor view?

I have a few how-to pages that exist in the N2 CMS system and I want to include one or two of them at the bottom of a normal MVC view. I have manged to use the N2 APIs to pull back a ContentItem for the specific page in the Controller…
GazB
  • 3,510
  • 1
  • 36
  • 42
0
votes
1 answer

ASP.NET MVC - Dynamically set properties of UserControl not rendering correctly

As a follow on from one of my previous posts (ASP.NET MVC2 Master Page - Server side script not rendering, first bracket being escaped) I now having a similar problem. This time it is with trying to dynamically set the properties of a UserControl.…
James
  • 80,725
  • 18
  • 167
  • 237
0
votes
0 answers

System.StackOverflowException when adding list item

Im currently using N2CMS to create a website however I am having the below issue. I have a page where I have a list of images: [EditableChildren("SliderImageItem", "SliderImageItem", 150)] public virtual IList SliderImages …
Andrei0427
  • 573
  • 3
  • 6
  • 18
0
votes
1 answer

How to get the url of another content item with N2CMS?

I use N2CMS version 2.9.6.8 and let's say I opened the account/login page, then I want to click on the subscribe link below the login form. So, how to get the url of the subscribe page to build the ahref tag correctly? The website has many languages…
David Létourneau
  • 1,250
  • 2
  • 19
  • 39
0
votes
2 answers

n2cms editable checkboxlist property

I am looking at creating an editable checkboxlist property for an item as indicated in the code below. The edit interface renders the checkboxlist but does not persist the selected checkbox items. [Editable("Divisions", typeof(CheckBoxList),…
icesean
  • 1
  • 3
0
votes
1 answer

Add a new language in N2CMS

I cant find how I add a new language in N2CMS, and the associate that language to my new Startpage. I have check in the code, but nothing, also checked in DB Any ideas?
Don Juan
  • 171
  • 2
  • 17
0
votes
1 answer

n2cms Asp.net give error on Files menu (File Manager)

I am new to n2cms and in our application when ever I click on File manager main menu or try to upload an image it gives error. The error is generic hence so use of showing it here. My question is there any specific permission or configuration…
Vikram Shetty
  • 737
  • 7
  • 18