Displaying Page List even when child pages have restricted access

Permalink 1 user found helpful
Hello all

I am wanting to display a list of child pages on the parent page even thought the child pages will be restricted to password access only (using the core C5 login process). Can anyone please advise how this can be done? I cannot easily see in the core block.

dclmedia
 
mnakalay replied on at Permalink Best Answer Reply
mnakalay
if you want to show a list of pages, you can use a page list. Page lists have an ignorePermissions() function that can be used to do just that. For instance
$list = new PageList();
$list->ignorePermissions();

You can have a look at the core Page list BLock, inside the controller to see how it's done.
dclmedia replied on at Permalink Reply
dclmedia
That worked perfectly, I just added 'true' to the "ignorePermissions" and bingo!! Thank you