Quantcast
Channel: Kentico CMS for ASP.NET - DevNet - Forums - Version 7.x - API
Viewing all articles
Browse latest Browse all 660

RE:How do I retrieve Booking Events using the API?

$
0
0
FroggEye
Robert,

This should get you exactly what you need. You can use this for any document type, simply change the parameter.
CMS.DocumentEngine.TreeProvider provider = new CMS.DocumentEngine.TreeProvider();
DataSet eventDs = provider.SelectNodes(CMS.CMSHelper.CMSContext.CurrentSiteName, "/Your/Alias-Path/%", "", true, "cms.bookingevent", "EventDate >= '" + DateTime.Now.ToString() + "'");

Viewing all articles
Browse latest Browse all 660

Latest Images

Trending Articles



Latest Images