Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4927 Näkymät

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
Hylkää
Paras vastaus

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

Avatar
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
6
helmik. 16
11689
0
maalisk. 25
1593
1
heinäk. 25
798
2
kesäk. 25
2377
3
huhtik. 25
2591