Skip to content

How to remove the current page from a list of pages? #795

Discussion options

You must be logged in to vote

This is now possible. Here is an example snippet to remove the current page from a page collection:

$pages = $this->yellow->content->index()->filter("layout", "blog");
$pages->remove($this->yellow->page);

Does this solve your problem?

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JetGum
Comment options

You must be logged in to vote
3 replies
@JetGum
Comment options

@schulle4u
Comment options

@markseuffert
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants