Thank you stolle,
I found the probebly right templates under:
/Packages/Application/TYPO3.Neos.NodeTypes/Resources/Private/Templates/NodeTypes/Headline.html, Text, …
Would like to overwrite this with own Template in own Site-Packages
##
# prevent default class in neos default div wrapping each inline editable item
##
prototype(TYPO3.Neos:Content) {
attributes.class.@process.nodeType >
}
##
# overwrite the default Headline-Template: so unnecessary div-wrap will prevented
##
prototype(TYPO3.Neos.NodeTypes:Headline){
templatePath = 'resource://Ms.MySite/Resources/Private/Templates/NodeTypes/Headline.html'
}
But this doesn’t work :
Error :
Template file "resource://Ms.MySite/Resources/Private/Templates/NodeTypes/Headline.html" could not be loaded
Path seems to be right, because with a typo in path Ms.MySite > Mt.MySite
Invalid
resource URI
"resource://Mt.MySite/Resources/Private/Templates/NodeTypes/Headline.html":
Package "Sm.SmarterDesign" is not available.
Maybe there is an streight forward way to overwrite the Template in own Site-Package? I can’t find in docu, forum-search or google.
###Is this the right template for headline in neos?
{namespace neos=TYPO3\Neos\ViewHelpers}
<div{attributes -> f:format.raw()}>
{neos:contentElement.editable(property: 'title')}
</div>
###AND
if I delete Line 2 and 4 in Headline.html in the origional Template, the outer div-wrapper disapeared, but the inner one is still there
###AND
after deleting, Inline-Editing doesn’t work … <div{attributes -> f:format.raw()}>
back in place Inline-Editing works fine again.
Maybe I had missanderstood the meaning of [quote=“stolle, post:5, topic:1015”]
If you want to get rid of the whole div you can overrite the template and just remove.
[/quote]
I can’t find a working solution for
- remove and for
- do it in the Site-Package .
Maybe someone knows, how I could overwrite the Template for a NodeType, so both <div>-wrapper
will gone and Inline-Editing will still work?
Would be great!