Configures Orchard Core placement including placement.json, tabs, cards, columns, groups, alternates, wrappers, positions, and dynamic placement providers. Useful when working with shape placement, editor grouping, or display driver location syntax.
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 correct placement for shapes, editor shapes, tabs, cards, columns, and fluent display-driver locations.
placement.json is the standard way to place shapes in modules and themes..Location("...") or the fluent PlacementLocationBuilder.@await DisplayAsync(Model.Content).Col, Main, Sidebar, or Details unless a name is intentionally tied to custom CSS.- to hide a shape.alternates to swap templates and wrappers to wrap a shape in additional markup.IShapePlacementProvider only when placement must be computed dynamically.ContentPart_Edit to hide or move a whole content part editor row in the admin UI. Its differentiator is {ContentType}-{PartName}.BagPart_Edit, FlowPart_Edit, or TitlePart_Edit use {PartName} as differentiator and only affect the inner editor content, not the wrapper.{PartName}-{FieldName} as differentiator.{PartName}-{FieldName}-{FieldType}_Display__{DisplayMode} as differentiator.The placement format supports these segments:
Zone:position#TabName;tabPosition%CardName;cardPosition|ColumnName[_width][;columnPosition]
Every segment after Zone:position is optional.
Zone - target zone such as Content, Header, Meta, Actions, or Parts:position - position within the zone or within the current grouping#TabName;tabPosition - editor tab name and the tab's ordering position%CardName;cardPosition - editor card name and the card's ordering position|ColumnName[_width][;columnPosition] - editor column name, optional Bootstrap width modifier, and optional column ordering position@group - a group identifier used to filter shapes (for example OnGroup site settings sections)Positions sort numerically and hierarchically, never alphabetically:
start < before < 0 (empty) < 1 < 1.1 < 2 < 10 < after < free-text < end
before and after are anchors inside the numeric range. Non-numeric positions (for example PrefixPosition() values that alphabetize admin menu items) sort after after.start or end when a shape must be truly first or last, regardless of any other position. Sub-ordering works the same way: end < end.50 < end.100.#, then %, then |.; before the group position for tabs, cards, and columns._, as in |Col_4;2 or |Sidebar_lg-3;2.: after a tab, card, or column name. #General:1 creates the literal tab name General:1, which is wrong.| Placement | Meaning |
|---|---|
Content:5 | Place the shape in the Content zone at position 5 |
Content:1#General;1 | Place in the General tab |
Content:4%Interaction;1 | Place in the Interaction card inside Content |
Content:4#Capabilities;8%Tools;3 | Place in the Capabilities tab, then the Tools card |
| `Content:4#Capabilities;8%Tools;3 | Col_4;2` |
Content:end | Place truly last in the Content zone |
/Footer:1 | Place in the Footer layout zone instead of a local content zone |
Parameters:1@search | Place with the search group identifier (fluent .Group("search")) |
| Shape type | Typical usage | Differentiator pattern | Example |
|---|---|---|---|
BagPart, FlowPart, TitlePart | Part display shape or inner XxxPart_Edit shape from a part driver | {PartName} | Services, FlowPart, TitlePart |
ContentPart | Display wrapper for parts without a dedicated display driver | {PartName} | GalleryPart |
ContentPart_Edit | Whole content part editor row in admin | {ContentType}-{PartName} | PlacementTest-BagPart, LandingPage-Services, Article-TitlePart |
TextField, HtmlField, ContentPickerField, etc. | Standard field display/editor shape | {PartName}-{FieldName} | Article-Subtitle, Address-City |
TextField_Display, HtmlField_Display, etc. | Field display-mode shape | {PartName}-{FieldName}-{FieldType}_Display__{DisplayMode} | Blog-Subtitle-TextField_Display__Header |
PartName is the attached part name. For non-named parts it is usually the part type, such as BagPart, FlowPart, WidgetsListPart, or TitlePart. For named parts, use the custom name such as Services.
placement.json sits at the root of a module or theme. Each property is a shape type; its value is an array of rules. A rule combines filters (which shapes) with placement info (what to do). Every filter is optional.
| Filter | Matches |
|---|---|
| (property name) | The shape's original type, such as TextField, ContentPart, ContentPart_Edit, Content_PublishButton |
displayType | Detail, Summary, SummaryAdmin, SummaryAdminGrid, DetailAdmin, Edit, or a custom display type |
differentiator | One instance of a reused shape (see the table above) |
contentType | A content type or stereotype, or an array; Art* matches every type starting with Art |
contentPart | A part name, or an array, that the content item must contain |
path | A request path, or an array |
| Placement info | Effect |
|---|---|
place | Zone:position plus optional groupings; - hides the shape; a leading / targets a layout zone |
alternates | Adds alternate shape types (more specific templates) |
wrappers | Wraps the shape in other shapes |
shape | Substitutes another shape type |
Custom filters implement IPlacementNodeFilterProvider (Key is the JSON property name, IsMatch(ShapePlacementContext, object expression) evaluates it) and are registered as scoped services.
A layout zone target (/Sidebar:5) is only visible if the theme layout renders it with RenderSectionAsync("Sidebar", required: false) or {% render_section "Sidebar", required: false %}.
{
"TextField_Edit": [
{
"place": "Content:2"
}
],
"MyPart_Edit": [
{
"place": "Content:5"
}
]
}
{
"AIProfileGeneralFields_Edit": [
{
"place": "Content:1%General;1"
}
],
"AIProfileDeployment_Edit": [
{
"place": "Content:2%Deployments;1"
}
],
"AIProfileInteractionFields_Edit": [
{
"place": "Content:3%Interactions;2"
}
]
}
{
"MyTools_Edit": [
{
"place": "Content:7#Capabilities;8%Tools;3"
}
],
"MyAgents_Edit": [
{
"place": "Content:5#Capabilities;8%Agents;2"
}
]
}
{
"MyFieldA_Edit": [
{
"place": "Content:1%Layout;1|Col_4;1"
}
],
"MyFieldB_Edit": [
{
"place": "Content:1%Layout;1|Col_4;2"
}
],
"MyFieldC_Edit": [
{
"place": "Content:1%Layout;1|Col_4;3"
}
],
"MyLargeField_Edit": [
{
"place": "Content:2%Layout;1"
}
]
}
This places MyFieldA_Edit, MyFieldB_Edit, and MyFieldC_Edit in three separate col-md-4 wrappers on the same row, then renders MyLargeField_Edit full-width below the row in the same card.
{
"MyPart": [
{
"contentType": ["BlogPost"],
"displayType": "Detail",
"place": "Content:5"
},
{
"contentType": ["Article"],
"displayType": "Summary",
"place": "Meta:2"
}
]
}
{
"TextField": [
{
"differentiator": "BlogPost-Subtitle",
"place": "Content:2"
}
],
"MyShape": [
{
"alternates": ["MyShape__BlogPost"],
"wrappers": ["MyShape_Wrapper"],
"place": "Content:5"
}
],
"SecretShape": [
{
"place": "-"
}
]
}
{
"ContentPart_Edit": [
{
"differentiator": "PlacementTest-BagPart",
"place": "-"
},
{
"differentiator": "PlacementTest-FlowPart",
"place": "-"
},
{
"differentiator": "PlacementTest-WidgetsListPart",
"place": "-"
},
{
"differentiator": "PlacementTest-TitlePart",
"place": "-"
}
]
}
Use this pattern when you need to hide or move the whole editor row. Do not use BagPart_Edit, FlowPart_Edit, WidgetsListPart_Edit, or TitlePart_Edit for this unless you intentionally want to target only the inner editor shape.
A part defined only in the content definition (no driver) renders as ContentPart in Detail and ContentPart_Summary in Summary, with the part name as differentiator. A rule keyed on the part name (GalleryPart) never matches.
{
"ContentPart": [
{
"place": "MyGalleryZone",
"differentiator": "GalleryPart"
}
],
"ContentPart_Summary": [
{
"place": "MyGalleryZone",
"differentiator": "GalleryPart"
}
]
}
Render the custom zone where it belongs in the content template, for example in Content-Product.cshtml:
@await DisplayAsync(Model.MyGalleryZone)
The part itself still renders with GalleryPart.cshtml (or GalleryPart.Summary.cshtml).
A field rendered with a display mode uses the shape type {FieldType}_Display and the full differentiator:
{
"TextField_Display": [
{
"place": "Content:1",
"differentiator": "Blog-MyField-TextField_Display__Header"
}
]
}
You can use either the string form or the fluent builder form.
return Initialize<MyViewModel>("MyShape_Edit", model =>
{
model.Value = value;
})
.Location("Content:4%Interaction;1");
return Initialize<MyViewModel>("MyShape_Edit", model =>
{
model.Value = value;
})
.Location(c => c.Zone("Content", "4").Card(S["Interaction"], "1"));
Drivers localize the card name, which is its title (sentence case). Card names written in placement files and .Location("...") strings aren't localized.
return Initialize<MyViewModel>("MyShape_Edit", model =>
{
model.Value = value;
})
.Location(c => c
.Zone("Content", "4")
.Tab(S["Capabilities"], "8")
.Card(S["Tools"], "3")
.Column("Col", "2", "4"));
This produces a col-md-4 column ordered second within the card.
return Initialize<MyViewModel>("MyShape", model =>
{
model.Value = value;
})
.Location(c => c.Zone("Content", "5").AsLayoutZone());
Use .AsLayoutZone() when the placement should be treated as a layout zone rather than an editor grouping.
OrchardCore.Placements module (admin UI or OrchardCore.Placements.FileStorage) override everything below..Location(...).Display types do not inherit placement: rules for SummaryAdmin do not reach SummaryAdminGrid (admin Grid layout). See orchardcore-admin-lists.
Use an IShapePlacementProvider when placement depends on runtime conditions.
using OrchardCore.DisplayManagement.Descriptors;
using OrchardCore.DisplayManagement.Handlers;
public sealed class MyPlacementProvider : IShapePlacementProvider
{
public Task<IPlacementInfoResolver> BuildPlacementInfoResolverAsync(IBuildShapeContext context)
{
return Task.FromResult<IPlacementInfoResolver>(new Resolver());
}
private sealed class Resolver : IPlacementInfoResolver
{
public PlacementInfo ResolvePlacement(ShapePlacementContext placementContext)
{
if (placementContext.ShapeType == "MyShape")
{
// PlacementInfo is immutable; FromLocation parses and caches the location string.
return PlacementInfo.FromLocation("Content:5#General;1%Details;1");
}
return null;
}
}
}
using OrchardCore.DisplayManagement.Descriptors;
public sealed class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<IShapePlacementProvider, MyPlacementProvider>();
}
}
_4 for col-md-4 or _lg-3 for col-lg-3.col-md).Content group as soon as other shapes in the zone use groupings.:N) orders shapes inside a group; the group position (;N) orders the tabs, cards, or columns themselves. In Parts:2#Settings;1, the shape is at position 2 and the Settings tab is at group position 1.Content zone unless Orchard specifically expects another zone.Content:4%Interaction;1 is valid and preferred over inventing custom zones like Interaction:10.Every admin form groups its fields in cards, and every card comes from placement (content item editors are not grouped in cards):
.Location(l => l.Zone("Content", "1").Card(S["Server"], "10"))."place": "Content:5%Server;10", or into a tab and card: "place": "Content:1#Providers;10%Default provider;10".Content group).CardContainer shape (div.ocat-cards) and one Card shape per card: a <fieldset> titled by its <legend>, styled as a Bootstrap card, always expanded, or a plain fieldset inside a tab. A card whose shapes render nothing is hidden. Override Card.cshtml and CardContainer.cshtml in an admin theme to render cards differently.Settings_Edit__Site, Settings_Edit__TimeZone, Settings_Edit__Pagination, Settings_Edit__Resources and Settings_Edit__Cache for the general settings, or AdminSettings_Edit, AdminSettings_Edit__Navigation and AdminSettings_Edit__Lists for the admin settings. Template overrides and placement rules targeting the former single shape must be updated.The content item editor renders Cancel first, then the shapes of its Actions zone in position order, so the main action (Publish) is last. Since Orchard Core 4.0 final the built-in shapes are: ContentPreview_Button Actions:5, Content_DeleteButton Actions:10, Content_UnpublishButton Actions:20, Archive later (ArchiveLaterPart_Edit) Actions:20.5, Publish later (PublishLaterPart_Edit) Actions:25, Content_UserTaskButton Actions:28, Content_SaveDraftButton Actions:30, Content_PublishButton Actions:40. They used to be Publish 10, Delete 40, Preview after, Archive Later 10.5, Publish Later 10 and the user task buttons 30, so re-check rules that position shapes next to them. A custom secondary action goes between 5 and 35 with the action-bar-secondary class:
{
"Content_DeleteButton": [
{ "contentType": [ "Invoice" ], "place": "-" }
],
"MyModule_DuplicateButton": [
{ "place": "Actions:15" }
]
}
Content (use Content:before, Content:after, Content:start, or Content:end for positions)HeaderNavigationSidebarMetaTagsActionsFooterWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-placementfrom 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