Generates migration code and recipes for attaching and configuring built-in Orchard Core content parts including TitlePart, LiquidPart, HTML/Markdown body sanitization, and recipe configuration.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an Orchard Core expert. Generate migration code and recipes for attaching common built-in content parts.
AlterTypeDefinitionAsync in a migration..WithSettings(new XxxPartSettings { ... })..WithPosition("N") to control the order of parts in the editor.ContentPart_Edit with differentiator {ContentType}-{PartName} when you need to move or hide the whole editor row.XxxPart_Edit shapes from part drivers typically use {PartName} as the differentiator.await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("{{PartName}}", part => part
.WithPosition("{{Position}}")
.WithSettings(new {{PartName}}Settings
{
// Part-specific settings
})
)
);
Provides a title/display text for a content item. Feature: OrchardCore.Title.
| Setting | Type | Default | Description |
|---|---|---|---|
Options | TitlePartOptions | Editable | Title behavior: Editable, GeneratedDisabled, GeneratedHidden, EditableRequired. |
Pattern | string | null | Liquid pattern to generate the title (used with GeneratedDisabled or GeneratedHidden). |
RenderTitle | bool | true | Whether to render the title in the content shape. |
Placeholder | string | "" | Placeholder for the title editor. |
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("TitlePart", part => part
.WithPosition("0")
.WithSettings(new TitlePartSettings
{
Options = TitlePartOptions.EditableRequired,
RenderTitle = true
})
)
);
A generated title is evaluated when the item is created or updated and also when a version is published (for example when republishing an unpublished item), at most once per content item per request.
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("TitlePart", part => part
.WithPosition("0")
.WithSettings(new TitlePartSettings
{
Options = TitlePartOptions.GeneratedDisabled,
Pattern = "{{ ContentItem.Content.{{ContentType}}.Name.Text }} - {{ ContentItem.Content.{{ContentType}}.Date.Value | date: '%Y-%m-%d' }}"
})
)
);
Generates a URL (slug) for a content item. Feature: OrchardCore.Autoroute.
| Setting | Type | Default | Description |
|---|---|---|---|
AllowCustomPath | bool | false | Whether users can define a custom path. |
Pattern | string | "{{ ContentItem.DisplayText | slugify }}" | Liquid pattern to generate the slug. |
ShowHomepageOption | bool | false | Whether to show the "Set as homepage" option. |
AllowUpdatePath | bool | false | Whether to allow re-generating the path on data change. |
AllowDisabled | bool | false | Whether to allow disabling autoroute on individual items. |
AllowRouteContainedItems | bool | false | Whether to route contained items. |
ManageContainedItemRoutes | bool | false | Whether this part manages contained item routes. |
AllowAbsolutePath | bool | false | Whether to allow absolute paths for contained items. |
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("AutoroutePart", part => part
.WithPosition("1")
.WithSettings(new AutoroutePartSettings
{
AllowCustomPath = true,
ShowHomepageOption = false,
Pattern = "{{ ContentItem.DisplayText | slugify }}",
AllowUpdatePath = true
})
)
);
Provides a rich HTML body editor. Feature: OrchardCore.Html.
The authored HTML is stored unchanged. On display it is processed for
shortcodes and then sanitized when SanitizeHtml is enabled. Liquid syntax is
not executed; use LiquidPart for templated bodies. See orchardcore-html.
| Setting | Type | Default | Description |
|---|---|---|---|
SanitizeHtml | bool | true | Whether to sanitize the final rendered HTML. |
| Editor | Description |
|---|---|
Default | Plain text area. |
Wysiwyg | WYSIWYG HTML editor. |
Trumbowyg | Trumbowyg WYSIWYG editor. |
Monaco | Monaco code editor. |
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("HtmlBodyPart", part => part
.WithPosition("2")
.WithEditor("Wysiwyg")
.WithSettings(new HtmlBodyPartSettings
{
SanitizeHtml = true
})
)
);
Provides a Markdown body editor. Feature: OrchardCore.Markdown.
The authored Markdown is stored unchanged, converted to HTML on display,
processed for shortcodes, and then sanitized when SanitizeHtml is enabled.
Liquid in it is not executed. See orchardcore-markdown.
| Setting | Type | Default | Description |
|---|---|---|---|
SanitizeHtml | bool | true | Whether to sanitize the final HTML output. |
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("MarkdownBodyPart", part => part
.WithPosition("2")
.WithSettings(new MarkdownBodyPartSettings
{
SanitizeHtml = true
})
)
);
Stores a Liquid body in LiquidPart.Liquid and renders it on display, in the
body aspect, and in GraphQL. Feature: OrchardCore.Liquid. It has no settings
and no sanitize option. Editing it, or any item that contains it (including
widgets nested in FlowPart or BagPart), requires the security-critical
ManageLiquidTemplates permission. See orchardcore-liquid.
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("LiquidPart", part => part
.WithPosition("2")
)
);
Makes a content type a container for other content items. Feature: OrchardCore.Lists.
| Setting | Type | Default | Description |
|---|---|---|---|
PageSize | int | 10 | Number of items to display per page. |
EnableOrdering | bool | false | Whether to allow manual ordering. |
ContainedContentTypes | string[] | null | Content types that can be contained. |
ShowHeader | bool | false | Whether to show the list header. |
ShowFullPager | bool | false | Whether to render the full pager. |
await _contentDefinitionManager.AlterTypeDefinitionAsync("Blog", type => type
.WithPart("ListPart", part => part
.WithPosition("3")
.WithSettings(new ListPartSettings
{
PageSize = 10,
EnableOrdering = false,
ContainedContentTypes = new[] { "BlogPost" },
ShowHeader = true
})
)
);
Enables a content type to contain a flow of widget content items. Feature: OrchardCore.Flows.
| Setting | Type | Default | Description |
|---|---|---|---|
ContainedContentTypes | string[] | [] | Content types that can be added to the flow. |
CollapseContainedItems | bool | false | Whether contained editors start collapsed. |
DefaultAlignment | FlowAlignment? | null | Default alignment for new flow items. |
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("FlowPart", part => part
.WithPosition("3")
.WithSettings(new FlowPartSettings
{
ContainedContentTypes = new[] { "HtmlWidget", "ImageWidget", "BlockQuote" }
})
)
);
A container part allowing nested content items within a content item. Feature: OrchardCore.Flows.
| Setting | Type | Default | Description |
|---|---|---|---|
ContainedContentTypes | string[] | [] | Content types that can be added to the bag. |
DisplayType | string | null | Display type for rendering bag items (Detail when not set). |
ContainedStereotypes | string[] | [] | Stereotypes allowed in the bag. |
CollapseContainedItems | bool | false | Whether contained editors start collapsed. |
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("{{BagPartName}}", "BagPart", part => part
.WithDisplayName("{{DisplayName}}")
.WithPosition("4")
.WithSettings(new BagPartSettings
{
ContainedContentTypes = new[] { "Slide", "Testimonial" }
})
)
);
Provides an alias identifier for a content item. Feature: OrchardCore.Alias.
| Setting | Type | Default | Description |
|---|---|---|---|
Pattern | string | "{{ Model.ContentItem.DisplayText | slugify }}" | Liquid pattern to generate the alias. |
Options | AliasPartOptions | Editable | Editable or GeneratedDisabled. |
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("AliasPart", part => part
.WithPosition("1")
.WithSettings(new AliasPartSettings
{
Pattern = "{{ ContentItem.DisplayText | slugify }}"
})
)
);
Allows scheduling future publish dates. Feature: OrchardCore.PublishLater.
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("PublishLaterPart", part => part
.WithPosition("5")
)
);
Enables content localization (translation). Feature: OrchardCore.ContentLocalization.
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("LocalizationPart", part => part
.WithPosition("6")
)
);
Makes a content type act as a taxonomy container. Feature: OrchardCore.Taxonomies.
TaxonomyPart has no type-level settings. TermContentType and Terms are
stored on each taxonomy content item (TaxonomyPart.TermContentType), chosen
when the taxonomy is created or set in recipe content.
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{TaxonomyType}}", type => type
.WithPart("TitlePart", part => part.WithPosition("0"))
.WithPart("TaxonomyPart", part => part.WithPosition("1"))
);
{
"steps": [
{
"name": "Content",
"data": [
{
"ContentItemId": "[js:uuid()]",
"ContentType": "Taxonomy",
"DisplayText": "Categories",
"Latest": true,
"Published": true,
"TitlePart": { "Title": "Categories" },
"TaxonomyPart": { "TermContentType": "{{TermContentType}}", "Terms": [] }
}
]
}
]
}
Provides SEO metadata (meta title, description, etc.). Feature: OrchardCore.Seo.
| Setting | Type | Default |
|---|---|---|
DisplayKeywords | bool | false |
DisplayCustomMetaTags | bool | false |
DisplayOpenGraph | bool | false |
DisplayTwitter | bool | false |
DisplayGoogleSchema | bool | false |
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("SeoMetaPart", part => part
.WithPosition("10")
)
);
Enables content preview. Feature: OrchardCore.ContentPreview.
| Setting | Type | Default | Description |
|---|---|---|---|
Pattern | string | "" | Liquid pattern for the preview URL. |
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.WithPart("PreviewPart", part => part
.WithPosition("11")
.WithSettings(new PreviewPartSettings
{
Pattern = "{{ ContentItem | display_url }}"
})
)
);
When defining a content type, these options control the content type behavior:
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentType}}", type => type
.DisplayedAs("{{DisplayName}}")
.Creatable() // Can be created from the admin
.Listable() // Appears in content listings
.Draftable() // Supports draft versions
.Versionable() // Supports versioning
.Securable() // Supports per-content permissions
.Stereotype("{{Stereotype}}") // Set a stereotype (e.g., "Widget", "MenuItem")
);
Modules that provide custom parts from external sources (community or third-party modules) must be installed as NuGet packages in the web project (the startup project of the solution):
<Project Sdk="Microsoft.NET.Sdk.Web">
<ItemGroup>
<!-- Orchard Core base -->
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="3.*" />
<!-- Third-party modules must be added to the web project -->
<PackageReference Include="Lombiq.HelpfulExtensions.OrchardCore" Version="1.*" />
</ItemGroup>
</Project>
For local project references to third-party modules:
<ItemGroup>
<!-- Local third-party module project reference in the web project -->
<ProjectReference Include="../ThirdParty.Module/ThirdParty.Module.csproj" />
</ItemGroup>
HtmlBodyPartSettings.RenderLiquid and MarkdownBodyPartSettings.RenderLiquid
were removed. Existing Liquid stays stored but renders as text; startup logs
a warning per affected type. Move that content to LiquidPart.HtmlBodyPart.Html with raw.For field settings and editor choices, see orchardcore-content-fields. For routing options, see orchardcore-autoroute.
Official Orchard Core videos shown on the documentation page:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-content-partsfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job