Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4774 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
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

Powiązane posty Odpowiedzi Widoki Czynność
6
lut 16
11520
0
mar 25
1334
1
lip 25
517
2
cze 25
2158
3
kwi 25
2399