Last active
September 7, 2018 21:21
-
-
Save aertmann/f9c8a33e8720f7cb21be to your computer and use it in GitHub Desktop.
Inline editable properties for a document node (two different approaches) – TYPO3 Neos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<neos:contentElement.wrap node="{node}"> | |
<header> | |
<neos:contentElement.editable property="title" tag="h1" /> | |
</header> | |
</neos:contentElement.wrap> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page.body { | |
title = ${q(node).property('title')} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page.body { | |
header = TYPO3.Neos:Content { | |
templatePath = 'resource://TYPO3.NeosDemoTypo3Org/Private/Templates/Page/Default.html' | |
sectionName = 'header' | |
node = ${node} | |
title = ${q(node).property('title')} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:section name="body"> | |
{header -> f:format.raw()} | |
</f:section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:section name="header"> | |
<header> | |
<neos:contentElement.editable property="title" tag="h1" /> | |
</header> | |
</f:section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'TYPO3.Neos.NodeTypes:Page': | |
properties: | |
title: | |
ui: | |
inlineEditable: TRUE | |
inspector: | |
group: ~ | |
aloha: | |
'format': | |
'b': TRUE | |
'i': TRUE | |
'u': TRUE | |
'sub': TRUE | |
'sup': TRUE | |
'p': FALSE | |
'h1': FALSE | |
'h2': FALSE | |
'h3': FALSE | |
'pre': FALSE | |
'removeFormat': FALSE | |
'table': | |
'table': FALSE | |
'list': | |
'ol': FALSE | |
'ul': FALSE | |
'link': | |
'a': TRUE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a few questions (I'm trying to use method 1 with neos 1.2.5):
Any advice would be greatly appreciated!
Thx in advance :)