Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4786 Переглядів

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

Related Posts Відповіді Переглядів Дія
6
лют. 16
11534
0
бер. 25
1355
1
лип. 25
535
2
черв. 25
2172
3
квіт. 25
2428