Replies: 1 comment 1 reply
-
You'll need to add and configure Preview Part for the content type for Content Preview to work in a decoupled app. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Create content on admin side but when i preview that It not show any thing I working with decouple cms:
Anyone share with me the syntax so it call properly the flow based page in .cshtml:
Call like that synatx below:
@page "/article/{alias}"
@inherits OrchardCore.DisplayManagement.RazorPages.Page
@{
var article = await Orchard.GetContentItemByAliasAsync(Model.Alias);
ViewData["Title"] = article.DisplayText;
}
@article.DisplayText
var blogPost = await Orchard GetContentItemByIdAsync(Id);@Html.Raw(await Orchard.MarkdownToHtmlAsync((string)article.Content.MarkdownBodyPart.Markdown));
but the flow section not properly show:
Beta Was this translation helpful? Give feedback.
All reactions