Skip to content

How does the blog generate the filter pages? #933

Discussion options

You must be logged in to vote

Have a look at the method $pages->filter(). This API function is also used by the blog extension to filter pages in file blog.php in function onParsePageLayout(). As you can see in the blog source code, it first checks if there are any page request arguments and then filters pages for the blog start page. You can use the same API functions in your custom layout file.

Replies: 3 comments 2 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 PetersOtto
Comment options

You must be logged in to vote
2 replies
@markseuffert
Comment options

@PetersOtto
Comment options

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