Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4772 Tampilan

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
Buang
Jawaban Terbai

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

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
6
Feb 16
11514
0
Mar 25
1330
1
Jul 25
509
2
Jun 25
2144
3
Apr 25
2397