I have the following dummy controller trying to use https://github.com/cassidydotdk/Sitecore.Datalift
public class MyController : DataLiftController
{
public ActionResult Index()
{
var actionItem = GetActionItem("User Defined/MyProject/Pages/MyItem");
if (actionItem == null)
{
return new EmptyResult;
}
var viewModel = new ViewModel()
{
Title = actionItem["Title"]
};
return View("~/Views/MyView.cshtml", viewModel);
}
}
However, I always get null for actionItem. What am I doing wrong? I am expecting the actionItem to return context item unless I have datasource then return datasource. However in both instances I get null.