You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Episerver编辑器中JumbortonBlock无Create按钮问题求助

Troubleshooting Missing Create Button for JumbortonBlock in Episerver

Hey there, let's work through this missing Create button issue for your JumbortonBlock. I've dealt with similar problems in Episerver before, so here are the most common fixes to try step by step:

1. Verify Your Block Class Setup

First, double-check that your JumbortonBlock class is properly decorated and inherited correctly. Episerver relies on these attributes to recognize content types:

[ContentType(
    DisplayName = "Jumborton Block",
    GUID = "your-unique-guid-here", // Generate a new GUID if you haven't already
    Description = "Custom block for jumbotron-style content")]
public class JumbortonBlock : BlockData // Must inherit from BlockData, not PageData
{
    // Add your block properties here, e.g.:
    [Display(Name = "Heading", Order = 10)]
    public virtual string Heading { get; set; }
}

If you missed the [ContentType] attribute or inherited the wrong base class, Episerver won't register your block.

2. Rebuild and Deploy Your Solution

  • Make sure you've rebuilt the entire solution (not just the project) in Visual Studio. Uncompiled code changes won't be picked up by Episerver.
  • If you're running a web application, confirm the latest build has been deployed to your web root—Episerver reads from the compiled assemblies to load content types.

3. Check Content Type Status & Permissions

Log into the Episerver Admin mode (click the Admin button in the top right) and:

  • Go to Types > Content Types, search for JumbortonBlock. Ensure its status is set to Available (not Disabled).
  • Navigate to Permissions > Set Permissions for Type, find your block, and verify your admin role has the Create permission enabled for it. Sometimes default permissions don't auto-apply to new content types.

4. Clear Episerver Cache

Episerver caches content types aggressively, which can hide newly created blocks:

  • Restart your website (either via IIS app pool restart or stopping/starting debugging in Visual Studio).
  • In Admin mode, go to Tools > Episerver Framework > Clear Cache and click "Clear All Cache" to wipe cached content type data.

5. Confirm Block is Allowed in the Target Context

If you're trying to add the block to a page's content area:

  • Check the page's ContentArea property to ensure it allows your block type. If there's an [AllowedTypes] attribute, make sure JumbortonBlock is included:
    [AllowedTypes(typeof(JumbortonBlock))]
    public virtual ContentArea MainContent { get; set; }
    
  • In Admin mode, go to Content Types > JumbortonBlock > Settings and check the "Allowed in" section to confirm it's permitted in the content area you're using.

6. Check for Errors in Episerver Logs

If none of the above works, look for clues in the Episerver logs (located in App_Data\Logs by default). Search for entries related to JumbortonBlock—common issues like duplicate GUIDs, missing dependencies, or type loading failures will show up here and explain why the block isn't registering.


内容的提问来源于stack exchange,提问作者Vijeeshkumar vofox

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 09:24:32