我正在使用Tridion2011 SP1和Razor模板,但在通过用户界面2012创建页面和插入内容时遇到了问题。当我尝试这样做时,似乎我的剃刀助手,名称空间和程序集在Tridion.ContentManager.config文件中没有被包括在内。
我尝试直接在razor模板中添加对助手的引用,一切正常,但我不希望在每个Razor模板中都这样做。
当我尝试通过UI创建页面时,我得到以下Razor错误:
TemplateCompileException: CS0103: The name 'GetBreadcrumbStatus' does not exist
in the c
有自定义错误页面:
public sealed class ErrorModel : PageModel
{
public ErrorModel()
{
// app stops at breakpoint inside ctor
}
public IActionResult OnGet()
{
// app doesn't stop here, why?
// this is for debugging purposes only
return BadRequest();
所有关于使用双向绑定的文档都声称,为了在自定义组件中使用双向绑定,您需要使用EventCallback。然而,当使用一个列表时,它会自动工作。我想知道为什么?
示例页面index.razor:
@page "/"
<PageTitle>Index</PageTitle>
<h1>Hello, world!</h1>
Welcome to your new app.
<SurveyPrompt ListOfValues="@ListOfValues" StringValue="@StringVa