sulu / sulu

Core framework that implements the functionality of the Sulu content management system
https://sulu.io
MIT License
1.14k stars 332 forks source link

"Info_Text" wont work in section meta #5497

Open TheCadien opened 3 years ago

TheCadien commented 3 years ago
Q A
Sulu Version 2.1

Actual Behavior

It's possible to configure the form xml like this.

 <section name="example">
            <meta>
                <title lang="de">Beispiel Sektion</title>
                <title lang="en">Example sextion</title>

                <info_text lang="de">Die ist ein Beispiel Info Text</info_text>
                <info_text lang="en">This is an Example info text</info_text>
            </meta>
 </section>

But the configured meta information "Info_text" isn't rendered in the frontend.

Expected Behavior

I think it should be a nice feature if the info test would work too in the section. Like it's in properties.

<property name="exampleProperty" type="text_line">
      <meta>
                <title lang="de">Beispiel Property</title>
                <title lang="en">Example property</title>

                <info_text lang="de">Die ist eine Beispiel Property</info_text>
                <info_text lang="en">This is an example property</info_text>
        </meta>
 </property>
alexander-schranz commented 3 years ago

Thank you for report. Seems like currently the info_text/description is currently not rendered. If I'm not wrong it should be rendered here: https://github.com/sulu/sulu/blob/74d39b37aa536d76dbc8adb7fd5a44653fd95998/src/Sulu/Bundle/AdminBundle/Resources/js/components/Form/Section.js#L29 and I would think that it should look like .descriptionLabel.

@TheCadien Do you want to create a Pull Request for this?