Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4767 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Autor

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 Odpovědi Zobrazení Aktivita
6
úno 16
11508
0
bře 25
1318
1
čvc 25
502
2
čvn 25
2128
3
dub 25
2391