BrickPile 0.5.3-unstable

This is a prerelease version of BrickPile.
There is a newer version of this package available.
See the version list below for details.
dotnet add package BrickPile --version 0.5.3-unstable
NuGet\Install-Package BrickPile -Version 0.5.3-unstable
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BrickPile" Version="0.5.3-unstable" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BrickPile --version 0.5.3-unstable
#r "nuget: BrickPile, 0.5.3-unstable"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BrickPile as a Cake Addin
#addin nuget:?package=BrickPile&version=0.5.3-unstable&prerelease

// Install BrickPile as a Cake Tool
#tool nuget:?package=BrickPile&version=0.5.3-unstable&prerelease

BrickPile is a lightweight CMS built on RavenDB and ASP.NET MVC 5

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.4 2,238 5/3/2015
0.5.3 1,761 1/11/2015
0.5.3-unstable 1,398 7/21/2014
0.5.2 1,837 6/8/2014

I'm happy to announce a new pre release of BrickPile with support for working drafts and I gladly take feedback on both the API for working with page drafts and how the UI works when editing a draft and so on.

So to get started with the new pre release just create a new ASP.NET MVC 5 empty project, open the Package Manager Console and type `Install-Package BrickPile -Pre -DependencyVersion Highest`. If you are new to BrickPile, check out this [introduction](https://github.com/brickpile/brickpile/wiki/How-BrickPile-Works)

In the UI it's now possible to uncheck the **Published** checkbox and thereby save the page as a working draft. Then if you edit the page again you can revert back to the published page and remove the working draft.
Maybe this isn't so intuitive but it works for now.

I have also introduced the concept of saving page drafts using the API.

   var page = new MyPage();
   session.Store(page); // Default RavenDB
   session.Store(page, StoreAction.None); // Default RavenDB
   session.Store(page, StoreAction.Save); // Save the page as a working draft
   session.Store(page, StoreAction.Publish); // Publish a page, this will remove any working draft if available
   session.Store(page, StoreAction.UnPublish); // Unpublish page

In this release I have also included a couple of extension methods for easy access to the parent page, start page, children and ancestors using the following methods.

   var children = session.Advanced.GetChildrenFor<T>(page);
   var parent = session.Advanced.GetParentFor(page);
   var ancestors = session.Advanced.GetAncestorsFor<T>(page, true); // Add true to include the start page
   var start = session.Advanced.GetStartPage();
   var navigationContext = session.Advanced.GetNavigationContextFor(page, true); // Add true to include the start page

I hope find this interesting and give me a lot of feedback!

Cheers!