orchardcore-razor

Guide Orchard Core Razor view development with templates and tag helper best practices.

13|3|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/CrestApps/CrestApps.AgentSkills --skill orchardcore-razor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orchardcore-razor
Source: https://github.com/CrestApps/CrestApps.AgentSkills/tree/main/src/CrestApps.AgentSkills.Skills/orchardcore/orchardcore-razor
Command: npx skills add https://github.com/CrestApps/CrestApps.AgentSkills --skill orchardcore-razor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This craft provides guidance and templates for building Razor views in Orchard Core themes and modules, ensuring consistent patterns and best practices across projects.

Core Features & Use Cases

  • Razor view templates and tag helper guidance for Orchard Core themes
  • IOrchardHelper extensions usage, _ViewImports.cshtml and _ViewStart.cshtml setup, and layout patterns
  • Real-world scenarios include theme layouts, widget templates, and content item views in Orchard Core

Quick Start

Create a simple Orchard Core theme Razor view that uses the provided _ViewImports.cshtml and _ViewStart.cshtml guidance to render a page.

Frequently Asked Questions about orchardcore-razor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up _ViewImports.cshtml and _ViewStart.cshtml for an Orchard Core theme?

To set up Orchard Core theme views, configure _ViewImports.cshtml for tag helper registrations and _ViewStart.cshtml for layout routing. This ensures consistent Razor view initialization and proper IOrchardHelper extension availability across theme pages.

What is the best way to use IOrchardHelper extensions in Razor views?

The best way to use IOrchardHelper extensions in Razor views is through provided templates that enforce framework-aligned code structure. This ensures safe resource management and proper shape rendering across common theming scenarios like layouts and widgets.

How does shape rendering work in Orchard Core Razor views?

Shape rendering in Orchard Core Razor views works by utilizing specific tag helpers to dynamically render content shapes. Following established patterns ensures compatibility with Orchard Core development workflows and safe content item display.

Can I use standard ASP.NET Core tag helpers in Orchard Core themes?

Yes, you can use standard ASP.NET Core tag helpers in Orchard Core themes. The guidance covers integrating these helpers alongside IOrchardHelper extensions to build robust, framework-aligned view templates for content items and widgets.

Why do my Orchard Core Razor views need specific layout patterns?

Orchard Core Razor views need specific layout patterns to ensure consistent resource management and shape rendering across modules. Using established _ViewStart.cshtml and _ViewImports.cshtml patterns guarantees compatible theming workflows.