how do you override the rendering of the Navigation zone in Orchard CMS?

后端 未结 2 923
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 08:04

I\'m new to Orchard, so I probably have no idea what I\'m doing.

I\'ve figured out how to override different shapes but putting a cshtml file in the View folder with the

2条回答
  •  太阳男子
    2021-02-01 09:05

    Zones are also shapes, but they are declared in code (Core/Shapes/CoreShapes.cs), not in .cshtml files like most of shapes. Also, there is no shape called Navigation, as zones are created dynamically at runtime - names of those are provided by the theme used.

    Zones have default alternates in the form Zone__[ZoneName]. It means you just need to put Zone-Navigation.cshtml file in /Views folder in your theme folder to override Navigation zone rendering.

提交回复
热议问题