콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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

관련 게시물 답글 화면 활동
6
2월 16
11701
0
3월 25
1621
1
7월 25
825
2
6월 25
2390
3
4월 25
2598