umbraco/Umbraco-CMS — pull request #435 by AndyButland (2014-07-31 15:56:48+00:00)
Title: U4 4972 - list view configuration

This pull request contains a number of usability improvements on the list view container, most of which are detailed in U4-4972.

The new features are:

- New configuration panel that appears when you select a document type as being a list view, that allows configuration of:
- Page size
- Columns for display (both native and custom properties)
- Default order by (native properties only - this looked beyond me to get working for custom ones)
- Ability to show or hide each of the bulk action buttons (publish, unpublish and delete)
- I've also added a "Return to list" button that appears when editing the child of a container, which takes you back to the container view at the page you were viewing when you clicked to go to the content originally.

Some development points:

- The configuration for the list view is stored in a new database field as a JSON string, as such you'll need to run this script (and if the PR is accepted, add this to an appropriate migration)

ALTER TABLE cmsContentType
ADD containerConfig nvarchar(max) NULL
GO

- The return to list button relies on storing the page number in $rootScope. I'm aware "global variables" like this should be avoided in most cases, but it seemed a valid use here - but just to flag in case someone can find a better way to do this.