开发者

orchard cms create pages in cms

I have an Orchard CMS application. I want to create multiple pages in that other than the homepage. I want to display a menu on the other pages. When user logs开发者_如何学Python in, the menu should be displayed according to his role. Can anybody give me solution for this?


You can create new pages in the admin Dashboard by choosing New --> Page in admin menu. Menu is static atm, so there's no out-of-the-box functionality to limit the menu items to the current user role(s). Btw - I'm building a module for this, though, so such a feature will be available in few weeks.

Cheers


To add a menu to "other than homepage" - You can add a layer with rule !url'/homepage' (that might not be exact.) Then you can assign a menu widget to that layer.

Now, getting a role based menu is a little tougher. Can you use roles in the layer rules? I haven't seen it but if it exists, you could create a layer for each role with the a rule like this. !url'/homepage' && role'foo'

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜