Skip to content

Commit

Permalink
FEATURE: List posts by tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed Dec 27, 2018
1 parent 3010bd2 commit 65ae72b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Resources/Private/Fusion/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ prototype(RobertLemke.Plugin.Blog:Category) < prototype(Neos.NodeTypes:Page) {
}
}

#
# List posts in tag, including pagination
#
prototype(RobertLemke.Plugin.Blog:Tag) < prototype(Neos.NodeTypes:Page) {
body.content.main = RobertLemke.Plugin.Blog:PostsOverview {
postsNode >
postNodes = ${q(site).find('[instanceof RobertLemke.Plugin.Blog:Post]').filterByReference('tags', documentNode).get()}
}
}

#
# RSS feed
#
Expand Down

0 comments on commit 65ae72b

Please sign in to comment.