开发者

Themes : How can i make a Model like the Content Model with Orchard CMS?

开发者 https://www.devze.com 2023-03-14 01:58 出处:网络
I would like to have a content like the body content which contains the data of a specific content item.

I would like to have a content like the body content which contains the data of a specific content item.

To be precise, when i am using the AsideSeco开发者_运维知识库nd Model, i want it to change on every page according to the data i entered to it, not to display the same data everywhere.

I read some discussions on Orchard Codeplex but i did not came with the exact response.


You could use layers for this.

See this article here: http://www.orchardproject.net/docs/Managing-widgets.ashx

Now, you can add a layer with a rule that includes the url. So you can create a different layer for the pages you want, and add different widgets accordingly.

You could go one more step and use the Content Tag Layer module. This will allow you to add a layer for a specific tag, then you can add different widget content based on that tag. (See how to use it here)

HTH

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号