Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4799 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
6
thg 2 16
11568
0
thg 3 25
1385
1
thg 7 25
566
2
thg 6 25
2192
3
thg 4 25
2449