Aloha Integration


(Salvador Atienza) #1

Hello,

I have a very basic question about aloha and it would be kind if anyone could help me.

How can I set up Aloha. Me setup is the following, but it does not work:

yaml

properties:
section2ctlir2Text:
type: string
defaultValue: ‘Text’
ui:
label: ‘Text’
aloha:
‘format’:
‘*’ : true
‘h2’ : true
inlineEditable: true

html

{neos:contentElement.editable(property: 'section2ctlir2Text')}

Thank you

Regards


(Matthias Lang) #2

Hey @salvador,

Your nesting isn’t correct.
Use:

properties:
  section2ctlir2Text:
    type: string
    defaultValue: ‘Text’
    ui:
      inlineEditable: true
      aloha:
        format:
          h2: true

I’m not sure if section2ctlir2Text is a valid name. Rather avoid digits in propterty names.

Matthias


(Salvador Atienza) #3

Hello Matthias,

thank you very much for your reply.

Appliying your configuration I get following error:
Unable to parse at line 53 (near " aloha:").
Exception Code 0
Exception Type Symfony\Component\Yaml\Exception\ParseException
Thrown in File C:\dev\xampp\htdocs\neos.test\Packages\Libraries\symfony\yaml\Parser.php
Line 288

Do you know what’s wrong ?

Thank you a lot!

Regards

Salvador


(Matthias Lang) #4

Hey @salvador!

Sorry, I’ve made a wrong nesting too. I’ve edited my post above.