Skip to content

Commit 59416c0

Browse files
committed
Fix fetching of posts on tag & category pages
The `filterByReference()` operation is broken for Neos 9 – and no longer needed, too.
1 parent 0b9d09e commit 59416c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NodeTypes/Document/Category.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
prototype(RobertLemke.Plugin.Blog:Document.Category) < prototype(Neos.NodeTypes:Page) {
55
body.content.main = RobertLemke.Plugin.Blog:Content.PostsOverview {
66
paginatedPosts = Flowpack.Listable:PaginatedCollection {
7-
collection = ${q(site).find('[instanceof RobertLemke.Plugin.Blog:Document.Post]').filterByReference('categories', documentNode).get()}
7+
collection = ${q(documentNode).backReferenceNodes('categories')}
88
}
99
}
1010
}

NodeTypes/Document/Tag.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
prototype(RobertLemke.Plugin.Blog:Document.Tag) < prototype(Neos.NodeTypes:Page) {
55
body.content.main = RobertLemke.Plugin.Blog:Content.PostsOverview {
66
paginatedPosts = Flowpack.Listable:PaginatedCollection {
7-
collection = ${q(site).find('[instanceof RobertLemke.Plugin.Blog:Document.Post]').filterByReference('tags', documentNode).get()}
7+
collection = ${q(documentNode).backReferenceNodes('tags')}
88
}
99
}
1010
}

0 commit comments

Comments
 (0)