BrickPile 0.5.3-unstable

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

This is a prerelease version of BrickPile.
There is a newer version of this package available.
See the version list below for details.
Install-Package BrickPile -Version 0.5.3-unstable
dotnet add package BrickPile --version 0.5.3-unstable
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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!

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.5.4 918 5/3/2015
0.5.3 699 1/11/2015
0.5.3-unstable 552 7/21/2014
0.5.2 734 6/8/2014