Skip to content
Simonas Mikulenas edited this page May 13, 2013 · 24 revisions

This documentation page is created to let you understand the way of how to interact with Better CMS - to get data and / or to be notified on particular events.

How to access CMS data?

To catch the main idea how to get some data from the Better CMS, check out the example:

using BetterCms.Core;
using BetterCms.Api;
[...]
var context = CmsContext.CreateApiContextOf<PagesApiContext>();
var layouts = context.GetPages();
[...]

So, the main idea is to create the API context (for particular module) and to use the methods it provides. Tip: add references to the modules you would like to access form App_Data/BetterCMS/Modules folder.

How to get notifications on CMS actions?

Write content...

Clone this wiki locally