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.

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.

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.

Moving, copying and deleting

Moves the current page to the supplied destination.  

Copies the current page to the supplied destination. 

Deletes the current page and redirects to the start page.