Page List Controller Filter
Permalink
I'm trying to filter a Page List in the controller by a single page ID (filter out the page with the specified ID). There doesn't seem to be a in-built function for it, so I'm trying to use generic filter() function but with no luck.
Let's say for example that the example below is trying to filter out the home page.
I'm guessing that the only thing I'm missing is the correct handle for page ID.
Let's say for example that the example below is trying to filter out the home page.
$pl->filter('cID', '1', '!=');
I'm guessing that the only thing I'm missing is the correct handle for page ID.
Which is great, however the opposite doesn't work. Ideally, the below example would filter everything BUT the home page:
But it just filters out everything instead.