diff --git a/DistributionPackages/Sfi.Kateheo/Resources/Private/Fusion/NodeTypes/PageMain.fusion b/DistributionPackages/Sfi.Kateheo/Resources/Private/Fusion/NodeTypes/PageMain.fusion
index b1af2c0..d74e5ec 100755
--- a/DistributionPackages/Sfi.Kateheo/Resources/Private/Fusion/NodeTypes/PageMain.fusion
+++ b/DistributionPackages/Sfi.Kateheo/Resources/Private/Fusion/NodeTypes/PageMain.fusion
@@ -1,3 +1,37 @@
+prototype(Sfi.Kateheo:AbstractList) < prototype(Flowpack.Listable:Collection) {
+ @process.styles = ${'' + value}
+ listClass = 'newsList'
+ itemClass = 'newsList-item'
+ itemRenderer = Flowpack.Listable:ContentCaseShort
+ collection = Neos.Neos:ContentCollection
+}
+
+
prototype(Sfi.Kateheo:PageMain) < prototype(Sfi.Kateheo:AbstractDocument) {
prototype(Psmb.Carousel:Carousel).@process.wrap = afx`
{value}
`
body.content = Neos.Fusion:Component {
@@ -9,39 +43,14 @@ prototype(Sfi.Kateheo:PageMain) < prototype(Sfi.Kateheo:AbstractDocument) {
mode = 'front'
}
- newsList = Flowpack.Listable:Collection {
- @process.styles = ${'' + value}
- listClass = 'newsList'
- itemClass = 'newsList-item'
- itemRenderer = Flowpack.Listable:ContentCaseShort
+ newsList = Sfi.Kateheo:AbstractList {
collection = ${Search.query(site).nodeType("Sfi.Kateheo:News").sortDesc('date').from(0).limit(4).execute().toArray()}
}
+ lastAdded = Sfi.Kateheo:AbstractList {
+ collection = ${Search.query(site).nodeType("Sfi.Kateheo:Article").sortDesc('date').from(0).limit(6).execute().toArray()}
+ }
+
soundCloudPlayer = Sfi.Kateheo:SoundCloudPlayer {
soundCloudLink = ${site.properties.soundCloudLink}
}
@@ -63,6 +72,13 @@ prototype(Sfi.Kateheo:PageMain) < prototype(Sfi.Kateheo:AbstractDocument) {
{props.main}
{props.primarySections}
+ Последние материалы сайта
+ {props.lastAdded}
+ События
+ {props.newsList}
+
@@ -77,11 +93,6 @@ prototype(Sfi.Kateheo:PageMain) < prototype(Sfi.Kateheo:AbstractDocument) {
- Новости
- {props.newsList}
-
`
style = ${'