Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4818 มุมมอง

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
11572
0
มี.ค. 25
1408
1
ก.ค. 25
606
2
มิ.ย. 25
2219
3
เม.ย. 25
2473