Customizes templates in Orchard Core via the admin UI. Covers shape template overrides, content type/part/field templates, Liquid syntax, admin template editing, and template precedence rules.
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.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Generate template overrides and explain template naming conventions for Orchard Core shapes.
OrchardCore.Templates module allows creating custom Liquid templates via the admin web editor.__ (double underscore) as a separator for specificity levels.__ in template names maps to - in filenames, and _ before display type maps to . (e.g., Content_Summary__BlogPost → Content-BlogPost.Summary.cshtml).Detail (default for full page), Summary (lists), SummaryAdmin (admin lists), etc.CampaignAction_Edit and CampaignAction_SummaryAdmin, which map to CampaignAction.Edit.cshtml and CampaignAction.SummaryAdmin.cshtml.Content, Actions, Meta, or Description, the root template must render those zones explicitly.ConsoleLog (Razor) or console_log (Liquid) to inspect available alternates for any shape, or enable Shape Tracing and use Inspect content (see orchardcore-assisted-templates).orchardcore-assisted-templates).sealed modifier except View Models.| Feature | Admin menu | Permission |
|---|---|---|
OrchardCore.Templates (depends on OrchardCore.Liquid) | Design > Templates | ManageTemplates (Administrator, Editor) |
OrchardCore.AdminTemplates | Design > Admin Templates | ManageAdminTemplates (Administrator) |
OrchardCore.Templates.Assisted (depends on OrchardCore.Templates) | Theme Templates and Feature Templates buttons on both pages | Same as the page |
OrchardCore.Templates.ShapeTracing (depends on Assisted Templates, OrchardCore.Contents, OrchardCore.ContentFields) | Inspect content button, content type alternates, Inspect templates content item action | Same as the page, plus ViewContent on the inspected item |
Every template action, including previews, also requires the security-critical
OrchardCore.Liquid.Permissions.ManageLiquidTemplates permission (granted to
Administrator and Editor by default). Without it the template menus and the
Templates shortcuts on the content type, part, and type-part editors are
hidden. Grant it explicitly to custom roles that manage templates.
The template create and edit pages render Model.Editor built by TemplateDisplayDriver (DisplayDriver<TemplateViewModel>, built with IDisplayManager<TemplateViewModel>): a General card (TemplateGeneral_Edit: Name, Description) and a Template card (TemplateContent_Edit: the Monaco editor). Overrides of Template/Create.cshtml or Template/Edit.cshtml must render @await DisplayAsync(Model.Editor), and another module can add a card with its own DisplayDriver<TemplateViewModel>. The bottom action bar has Cancel, Preview (site templates) and Save with Save and continue.
.liquid shape templates, from the admin or from theme files, are rendered by
LiquidShapeTemplateViewEngine directly with Fluid; Razor no longer renders
them as LiquidPage partials. Behavior and PO localization contexts are
unchanged.
The template editor's Preview tab renders the template with ~/OrchardCore.Templates/Scripts/template-editors/template-preview.min.js (a 4.0 regression where the script never loaded and the tab stayed blank is fixed). An override of Views/Preview/Index.cshtml must register its at="Foot" scripts before <resources type="Footer" />, or they are never written.
Templates are keyed by shape name; Content is the Liquid source:
{
"steps": [
{
"name": "Templates",
"Templates": {
"Content__BlogPost": {
"Description": "Blog post detail",
"Content": "<article><h1>{{ Model.ContentItem.DisplayText }}</h1>{{ Model.Content | shape_render }}</article>"
}
}
},
{
"name": "AdminTemplates",
"AdminTemplates": {
"Content_SummaryAdmin__Article": {
"Description": "Article admin list row",
"Content": "{{ Model.Header | shape_render }}{{ Model.Content | shape_render }}"
}
}
}
]
}
The All Templates (AllTemplates) and All Admin Templates
(AllAdminTemplates) deployment steps export these steps. With
ExportAsFiles, each template is written to Templates/{Name}.liquid or
AdminTemplates/{Name}.liquid (__ becomes -, _ becomes .) and
referenced as
"Content": "[file:text('Templates/Content-BlogPost.liquid')]".
Content__[ContentType]Renders a content item when displayed at its own URL (Detail display type).
| Template Name | Filename |
|---|---|
Content__BlogPost | Content-BlogPost.cshtml |
Content__Article | Content-Article.cshtml |
Available properties:
| Property | Description |
|---|---|
Model.Content | Zone shape containing all shapes from parts and fields |
Model.ContentItem | The current content item being rendered |
Model.ContentItem.Content | JSON object with all content item data |
Content_[DisplayType]__[ContentType]Renders a content item with a specific display type (e.g., Summary in lists).
| Template Name | Filename |
|---|---|
Content_Summary__BlogPost | Content-BlogPost.Summary.cshtml |
Content_Summary__Article | Content-Article.Summary.cshtml |
Content__Alias__[Alias]Renders a content item by its alias (requires AliasPart).
| Template Name | Filename |
|---|---|
Content__Alias__example | Content-Alias-example.cshtml |
Content__Slug__[Slug]Renders a content item by its slug (requires AutoroutePart). Path separators / become __ in template names and - in filenames.
| Template Name | Filename |
|---|---|
Content__Slug__example | Content-Slug-example.cshtml |
Content__Slug__blog__my__post | Content-Slug-blog-my-post.cshtml |
Widget__[ContentType]Renders a widget on a page.
| Template Name | Filename |
|---|---|
Widget__Paragraph | Widget-Paragraph.cshtml |
Widget__Blockquote | Widget-Blockquote.cshtml |
Available properties:
| Property | Description |
|---|---|
Model.Content | Zone shape with all shapes from the widget's parts/fields |
Model.ContentItem | The widget content item |
Model.ContentItem.Content | JSON object with widget data |
Model.Classes | Array of CSS classes attached to the widget |
[ShapeType]Default template for a content part shape. The shape type usually matches the part name.
| Template Name | Filename |
|---|---|
HtmlBodyPart | HtmlBodyPart.cshtml |
[ShapeType]_[DisplayType]Part shape with a specific display type.
| Template Name | Filename |
|---|---|
HtmlBodyPart_Summary | HtmlBodyPart.Summary.cshtml |
[ContentType]__[PartType]Part shape scoped to a specific content type.
| Template Name | Filename |
|---|---|
Blog__HtmlBodyPart | Blog-HtmlBodyPart.cshtml |
LandingPage__BagPart | LandingPage-BagPart.cshtml |
[ContentType]_[DisplayType]__[PartType]Part shape scoped to content type and display type.
| Template Name | Filename |
|---|---|
Blog_Summary__HtmlBodyPart | Blog-HtmlBodyPart.Summary.cshtml |
[ContentType]__[PartName]Named part scoped to a content type (for reusable named parts like BagPart).
| Template Name | Filename |
|---|---|
LandingPage__Services | LandingPage-Services.cshtml |
Display drivers for non-content-item models follow the same shape naming rules, but they often need both a root wrapper template and child-zone templates.
Example shape names and filenames:
| Shape Name | Filename |
|---|---|
CampaignAction_Edit | CampaignAction.Edit.cshtml |
CampaignAction_SummaryAdmin | CampaignAction.SummaryAdmin.cshtml |
CampaignActionFields_Edit | CampaignActionFields.Edit.cshtml |
CampaignAction_Fields_SummaryAdmin | CampaignAction.Fields.SummaryAdmin.cshtml |
CampaignAction_Buttons_SummaryAdmin | CampaignAction.Buttons.SummaryAdmin.cshtml |
When a driver uses placement such as .Location("SummaryAdmin", "Content:1") and .Location("SummaryAdmin", "Actions:5"), CampaignAction.SummaryAdmin.cshtml must render Model.Content and Model.Actions for those child shapes to appear.
[ShapeType]_[DisplayType]Field shape with a display type.
| Template Name | Filename |
|---|---|
TextField_Summary | TextField.Summary.cshtml |
[PartType]__[FieldName]Field scoped to a part type.
| Template Name | Filename |
|---|---|
HtmlBodyPart__Description | HtmlBodyPart-Description.cshtml |
[ContentType]__[PartName]__[FieldName]Field scoped to content type and part name.
| Template Name | Filename |
|---|---|
Blog__HtmlBodyPart__Description | Blog-HtmlBodyPart-Description.cshtml |
LandingPage__Services__Image | LandingPage-Services-Image.cshtml |
Parts attached to stereotyped content types (e.g., Widget) get additional alternates:
| Template Name | Filename |
|---|---|
Widget__HtmlBodyPart | Widget-HtmlBodyPart.cshtml |
Zone__[ZoneName]Renders a layout zone.
| Template Name | Filename |
|---|---|
Zone__Footer | Zone-Footer.cshtml |
Zone__Content | Zone-Content.cshtml |
Available properties:
| Property | Description |
|---|---|
Model.Items | Child shapes to render from the zone |
Model.Parent | Parent zone shape (Layout for root zones) |
Model.ZoneName | Name of the zone (e.g., "Footer", "Content") |
Liquid:
{% for shape in Model.Items %}
{{ shape | shape_render }}
{% endfor %}
Razor:
@foreach (var shape in Model)
{
@await DisplayAsync(shape);
}
Differentiators uniquely identify a shape in a zone for placement and template access:
[PartName] if shape type equals part name, otherwise [PartName]-[ShapeType].[PartName]-[FieldName] if shape type equals field name, otherwise [PartName]-[FieldName]-[ShapeType].Razor:
// Access by name
Model.Content.HtmlBodyPart;
Model.Content.Named("ListPart-ListPartFeed");
// Remove a shape
Model.Content.Remove("HtmlBodyPart");
Liquid:
{%- comment -%} Display a specific shape {%- endcomment -%}
{{ Model.Content.HtmlBodyPart | shape_render }}
{%- comment -%} Remove then render remaining {%- endcomment -%}
{% shape_remove_item Model.Content "HtmlBodyPart" %}
{{ Model.Content | shape_render }}
{%- comment -%} Access field shape for a field added directly to content type {%- endcomment -%}
{{ Model.Content["Article-Description"] | shape_render }}
{%- comment -%} Access field property directly {%- endcomment -%}
{{ Model.Content["Article-Description"].Field.Text }}
Parts that support display modes get additional alternates:
| Template Name | Filename |
|---|---|
TitlePart_Summary__CustomMode_Display | TitlePart-CustomMode.Display.Summary.cshtml |
LandingPage_Display__TitlePart__CustomMode | LandingPage-TitlePart-CustomMode.Display.cshtml |
LandingPage_Summary__TitlePart__CustomMode_Display | LandingPage-TitlePart-CustomMode.Display.Summary.cshtml |
Templates are resolved in this order (highest to lowest priority):
Within theme/module templates, more specific alternates take priority over generic ones.
Some module views (not shapes) can be overridden in your theme by placing them at:
YourTheme/Views/[ModuleName]/[Controller]/[Action].cshtml
Example: Override the login page:
YourTheme/Views/OrchardCore.Users/Account/Login.cshtml
Admin template name: Content__BlogPost
<article>
<h1>{{ Model.ContentItem.DisplayText }}</h1>
<div class="metadata">
<span>Published: {{ Model.ContentItem.PublishedUtc | date: "%B %d, %Y" }}</span>
<span>By: {{ Model.ContentItem.Author }}</span>
</div>
{% shape_remove_item Model.Content "TitlePart" %}
{{ Model.Content | shape_render }}
</article>
Admin template name: Content_Summary__BlogPost
<div class="blog-post-summary">
<h2><a href="{{ Model.ContentItem | href }}">{{ Model.ContentItem.DisplayText }}</a></h2>
<p>{{ Model.ContentItem.Content.HtmlBodyPart.Html | strip_html | truncate: 200 }}</p>
<small>{{ Model.ContentItem.PublishedUtc | date: "%B %d, %Y" }}</small>
</div>
ManageTemplates or ManageAdminTemplates alone no longer opens the
template editors; users also need ManageLiquidTemplates. Editor keeps it
through a migration, custom roles must be granted it.sanitize_html)
instead of {{ ... .Html | raw }}: HTML and Markdown source is no longer
sanitized on save.User and Site still expose only their fixed members. Module
code that registers filters, tags or values must move to
TemplateOptionsBuilder (see orchardcore-liquid).What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-templatesfrom 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