Creating and updating items

A quick plunge into options for content manipulation.

Creating and updating 

Creating an item comes down to instantiating the class and saving it using the N2 persister.

Creating an item
Same goes for updating, exception you won't need to create a new item. You'll need to get the instance somehow, e.g. by querying or if it's the current page use this.CurrentPage.
Updating an item

Another example. This time we're getting an item with a given id and updating it with the values from some textboxes on the page.

Getting and updating an item

Moving, copying and deleting

Moves the current page to the supplied destination.  

Moving an item

Copies the current page to the supplied destination. 

Copying an item

Deletes the current page and redirects to the start page.

Deleting an item