File tree Expand file tree Collapse file tree 5 files changed +23
-2
lines changed Expand file tree Collapse file tree 5 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 4848 inspector :
4949 group : imageDirectory
5050 position : 40
51+ imageDirectoryIgnoreDocuments :
52+ type : references
53+ ui :
54+ label : i18n
55+ reloadPageIfChanged : true
56+ inspector :
57+ group : imageDirectory
58+ position : 50
Original file line number Diff line number Diff line change @@ -15,12 +15,16 @@ prototype(Garagist.ImageDirectory:ByAsset) < prototype(Neos.Fusion:Component) {
1515 defaultCopyright = ${q(this.node).property('imageDirectoryDefaultCopyright')}
1616 imageWidth = ${q(this.node).property('imageDirectoryImageWidth')}
1717 ignoreAssets = ${q(this.node).property('imageDirectoryIgnoreAssets')}
18+ ignoreDocuments = ${q(this.node).property('imageDirectoryIgnoreDocuments')}
1819
1920 renderer = Neos.Fusion:Map {
2021 @process.filter = ${Array.filter(value)}
2122 items = ${props.rawList}
2223 itemRenderer = Garagist.ImageDirectory:Helper.AssetDataStructure {
23- @if.notIgnore = ${Array.indexOf(props.ignoreAssets || [], item.asset) == -1}
24+ @if {
25+ notIgnore = ${Array.indexOf(props.ignoreAssets || [], item.asset) == -1}
26+ hasDocuments = ${Array.length(this.documents)}
27+ }
2428 asset = ${item.asset}
2529 prefixCopyright = ${props.prefixCopyright}
2630 defaultCopyright = ${props.defaultCopyright}
@@ -29,6 +33,7 @@ prototype(Garagist.ImageDirectory:ByAsset) < prototype(Neos.Fusion:Component) {
2933 @process.filter = ${Array.filter(value)}
3034 items = ${item.documents}
3135 itemRenderer = Garagist.ImageDirectory:Helper.DocumentDataStructure {
36+ @if.notIgnore = ${Array.indexOf(props.ignoreDocuments || [], item.node) == -1 || false}
3237 document = ${item}
3338 }
3439 }
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ prototype(Garagist.ImageDirectory:ByDocument) < prototype(Neos.Fusion:Component)
1515 defaultCopyright = ${q(this.node).property('imageDirectoryDefaultCopyright')}
1616 imageWidth = ${q(this.node).property('imageDirectoryImageWidth')}
1717 ignoreAssets = ${q(this.node).property('imageDirectoryIgnoreAssets')}
18+ ignoreDocuments = ${q(this.node).property('imageDirectoryIgnoreDocuments')}
1819
1920 renderer = Neos.Fusion:Map {
2021 @process.filter = ${Array.filter(value)}
21- items = ${props.rawList}
22+ items = ${Array.filter( props.rawList, item => Array.indexOf(props.ignoreDocuments || [], item.node) == -1) }
2223 itemRenderer = Garagist.ImageDirectory:Helper.DocumentDataStructure {
2324 @if.hasAssets = ${Array.length(this.assets)}
2425 document = ${item}
Original file line number Diff line number Diff line change 2323 <source >Ignore assets</source >
2424 <target >Assets ignorieren</target >
2525 </trans-unit >
26+ <trans-unit id =" properties.imageDirectoryIgnoreDocuments" xml : space =" preserve" >
27+ <source >Ignore pages</source >
28+ <target >Seiten ignorieren</target >
29+ </trans-unit >
2630 </body >
2731 </file >
2832</xliff >
Original file line number Diff line number Diff line change 1818 <trans-unit id =" properties.imageDirectoryIgnoreAssets" xml : space =" preserve" >
1919 <source >Ignore assets</source >
2020 </trans-unit >
21+ <trans-unit id =" properties.imageDirectoryIgnoreDocuments" xml : space =" preserve" >
22+ <source >Ignore pages</source >
23+ </trans-unit >
2124 </body >
2225 </file >
2326</xliff >
You can’t perform that action at this time.
0 commit comments