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

后端 未结 2 915
隐瞒了意图╮
隐瞒了意图╮ 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 08:58

    If you are using the latest 1.1.3 release you can use the new shape tracing tool from the designer tools module. It provides a list of URL alternates to name your template in order to override the default rendering.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题