rick Posted October 15, 2019 Posted October 15, 2019 Can someone please point me in the right direction. I've been staring at this for a few hours and I can't see the tree. $userPage = wire('pages')->get("template=member-home,name={$user->name}"); In Tracy console, the page object is returned. In the template, however, a null page is returned. What am I overlooking?
Robin S Posted October 15, 2019 Posted October 15, 2019 Maybe: check_access=0 https://processwire.com/docs/selectors/#access_control
rick Posted October 16, 2019 Author Posted October 16, 2019 Yeah, I had specified include=all in the selector as well with the same results. I removed it after checking the template settings.
Gideon So Posted October 16, 2019 Posted October 16, 2019 Hi, If you do not login to the system. Your code surely return a null page array. Please check if you are login when you check the result. Gideon
rick Posted October 16, 2019 Author Posted October 16, 2019 Thanks @Gideon So, that sent me in the right direction.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now