-
Notifications
You must be signed in to change notification settings - Fork 147
API for Developers
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.
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.
Write content...