跳至內容
選單
此問題已被標幟
1 回覆
4777 瀏覽次數

I need to hide a page from the website 'royal_users'  

1. Other public users don't need to see this menu 

2. users who have checked boolean field is_royal only need to see the page 

3.it must hide from portal users, and normal users (who didn't have the tick mark in is_royal)

how to solve this ? is there any code available for this?


Thank you

頭像
捨棄
最佳答案

The pages are retrieved from the controller and you can add a domain as usual records. where website is a model.

頭像
捨棄
作者

thanks,

Can you please explain a little bit more?

Page model is website.menu, which is loaded while routing the homepage. so in controller you can do your stuff. or extend the website menu template

相關帖文 回覆 瀏覽次數 活動
6
2月 16
11520
0
3月 25
1336
1
7月 25
517
2
6月 25
2160
3
4月 25
2400