[Neos] Inline Editable Page Property

Rens Admiraal rens.admiraal at typo3.org
Thu Mar 20 21:13:52 CET 2014


Hi Carsten,

That should be possible if we extend the createjs implementation a bit. 
I do have to touch that part of the code for some other feature, so I 
could have a look if I could enable that. But atm it's not yet possible 
to fully skip aloha.

Greetz,
Rens

Carsten Bleicker schreef op 20/03/14 14:11:
> hi rens,
> thanks for this code snippet!
>
> lets say f.e i want to make the page title inline editable.
>
> i want a realy clean html result just with:
> <h1>{title}</h1>
>
> so just to do this?
> {neos:contentElement.editable(property:'title', tag: 'h1')}
>
> doctitle = TYPO3.Neos:Content {
> 	node = ${documentNode}
> 	title = ${q(documentNode).property('title')}
> 	templatePath = 'resource://My.Package/Private/Templates/TypoScriptObjects/Title.html'
> }
>
> so what i need is inline editing without any aloah formatting (h1 etc) because its just text input.
>
> possible?
>
>
> Am 20.03.2014 um 13:55 schrieb Rens Admiraal <rens.admiraal at typo3.org>:
>
>> Hey,
>>
>> Just a quick copy paste of code we use that should make it editable for you.
>>
>> HTML Template:
>> {namespace neos=TYPO3\Neos\ViewHelpers}
>> {neos:contentElement.editable(property:'abstract', tag: 'div')}
>>
>> TypoScript:
>> abstract = TYPO3.Neos:Content {
>> 	node = ${documentNode}
>> 	abstract = ${q(documentNode).property('title')}
>> 	templatePath = 'resource://My.Package/Private/Templates/TypoScriptObjects/Abstract.html'
>> }
>>
>>
>> I copied the code from a project and made some manual adjustments, but this should make abstract inline editable.
>>
>>
>> Greetz,
>> Rens
>>
>>
>>
>>
>> Carsten Bleicker schreef op 16/03/14 12:41:
>>> +1
>>> I am also interested in this.
>>>
>>> Am 16.03.2014 um 12:36 schrieb Benno Weinzierl <bw at s2intermedia.de>:
>>>
>>>> Hi Forum,
>>>>
>>>> i have created a Custom Nodetype (derived from Page) with an additional property "abstract".
>>>> This property is configured to be inlineEditable in the NodeTypes.yaml and put out using the "editable" ViewHelper directrly in the body-template. It is also passed to the template in the ts2 prototype of my NodeType.
>>>>
>>>> Now the Problem:
>>>> If i create the NodeType i see the default text of the abstract in my template just fine. BUT: The Aloha Editor is not loaded and the element is not selectable to edit. It gets the editable-css-class but is not editable.
>>>>
>>>> Is it not possible to inline-edit properties of Document-Type NodeTypes?
>>>>
>>>> I played around with custom content elements and they work just fine.
>>>> _______________________________________________
>>>> Neos mailing list
>>>> Neos at lists.typo3.org
>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
>>>
>>
>> _______________________________________________
>> Neos mailing list
>> Neos at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
>



More information about the Neos mailing list