BrickPile is a lightweight CMS built on RavenDB and ASP.NET MVC 5
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" />
paket add BrickPile --version 0.5.3-unstable
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!
This package is not used by any popular GitHub repositories.