var jobs = await Orchard.GetRecentContentItemsByContentTypeAsync("JobPost", 9999);
to get all content items of the type "JobPost" on my Razor page (decoupled site). I just recently deleted several test content items that I no longer needed, but they keep showing up when I generate this list of content items. And new content items that I have just created are not showing up. Is there something that needs to get refreshed somewhere in order to get an up-to-date list of these content items?
Module B.FancyFeature
. If I don't add Module B as a package reference in my startup project, Module B.FancyFeature
doesn't show up in the features list, even if it is listed as a package reference in the Module A .csproj, and Module A has the specific feature I'm using (Module B.FancyFeature
) listed as a dependency. Make sense?
Is there a way in OC to get the html of a content item using a specific displayType in a controller?
I tried this:
var productShape = await _contentItemDisplayManager.BuildDisplayAsync(product, this, "Detail");
var productHtml = await displayHelper.ShapeExecuteAsync(productShape);
This works, but productHtml also includes the theme html, which I do not want. Any ideas?