Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ttree
News
Commits
e17c6d42
Commit
e17c6d42
authored
Jun 20, 2017
by
Dominique Feyer
Browse files
BUGFIX: Wrong detection of content node for the teaser feature
parent
a7a02814
Changes
2
Hide whitespace changes
Inline
Side-by-side
Configuration/NodeTypes.Document.yaml
View file @
e17c6d42
...
...
@@ -51,7 +51,6 @@
properties
:
teaser
:
type
:
string
defaultValue
:
'
Enter
a
teaser
here'
ui
:
label
:
'
Teaser
text'
inlineEditable
:
true
...
...
Resources/Private/Fusion/NodeTypes/AbstractNews.fusion
View file @
e17c6d42
prototype(Ttree.News:AbstractNews) < prototype(Neos.Neos:Content) {
firstContentNode = ${q(node).children('main').find('[instanceof Neos.
Neos.
NodeTypes:Text]').get(0)}
firstContentNode = ${q(node).children('main').find('[instanceof Neos.NodeTypes:Text]').get(0)}
@context.firstContentNode = ${this.firstContentNode}
firstContentNodeText = ${q(this.firstContentNode).property('text')}
@context.firstContentNodeText = ${this.firstContentNodeText}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment