Skip to content

Commit d4446eb

Browse files
committed
FEATURE: kickstart sermons filtering
1 parent 4d66892 commit d4446eb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
root.sermonsFilteredJson {
2+
condition = ${request.arguments.author}
3+
renderer = Neos.Fusion:Http.Message {
4+
httpResponseHead {
5+
headers.Content-Type = 'application/json;charset=utf-8'
6+
headers.Access-Control-Allow-Origin = '*'
7+
}
8+
content = Sfi.Site:SermonsFilteredJson
9+
}
10+
}
11+
root.@cache.entryIdentifier.author = ${request.arguments.author}
12+
13+
prototype(Sfi.Site:SermonsFilteredJson) < prototype(Neos.Fusion:RawCollection) {
14+
collection = ${Search.query(site).nodeType("Sfi.Site:Sermon").exactMatch('authro', request.arguments.author).execute().toArray()}
15+
itemName = 'node'
16+
itemRenderer = Sfi.Site:SermonJson
17+
18+
@process.1 = ${Json.stringify(value)}
19+
20+
@cache {
21+
mode = 'cached'
22+
entryIdentifier {
23+
calendarDate = ${request.arguments.author}
24+
}
25+
entryTags {
26+
1 = ${Neos.Caching.nodeTypeTag('Sfi.Site:Sermon')}
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)