Skip to content

Commit

Permalink
Update Root.fusion
Browse files Browse the repository at this point in the history
It seems like that find works better than children in newer neos versions.
  • Loading branch information
arsors authored Nov 18, 2020
1 parent 936b8a7 commit e64fee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ prototype(getGlobalContent) < prototype(Neos.Fusion:Value) {
}

# Find global content by key
globalContent = ${q(site).children(this.instanceof).filter('['+this.key+']').property(this.key)}
globalContent = ${q(site).find(this.instanceof).filter('['+this.key+']').property(this.key)}

# Return
value = ${this.key ? (this.globalContent) ? this.globalContent : 'Can\'t find global content with key: "'+this.key+'"' : 'No key is set.'}
Expand Down

0 comments on commit e64fee0

Please sign in to comment.