How does the blog generate the filter pages? #933
-
Hello everyone! I'm stuck and need your help. Unfortunately I can't find a way to generate the »filter pages«. For example 🙋 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
My findings so far are that you have to change the The following way works, but requires more work when the blog extension will be updated
Now the second blog should work. |
Beta Was this translation helpful? Give feedback.
-
Have a look at the method |
Beta Was this translation helpful? Give feedback.
-
Perfect! Thanks for the tip! I got it. Do you generally see a problem with working with two blogs, as I described above #933 (comment)? Could that be a problem for Yellow? Maybe performance? |
Beta Was this translation helpful? Give feedback.
Have a look at the method
$pages->filter()
. This API function is also used by the blog extension to filter pages in fileblog.php
in functiononParsePageLayout()
. 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.