Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4765 Представления

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
11507
0
мар. 25
1317
1
июл. 25
501
2
июн. 25
2127
3
апр. 25
2390