Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module Options Description is not displayed #38136

Closed
Gratia-Mira opened this issue Jun 24, 2022 · 6 comments
Closed

Module Options Description is not displayed #38136

Gratia-Mira opened this issue Jun 24, 2022 · 6 comments

Comments

@Gratia-Mira
Copy link

Steps to reproduce the issue

Go to the backend and to a module of which you know that settings are described in the xml file by using "description". For example like this:
<field name="team-mitarbeiter" label="CSS team-mitarbeiter-Klasse" size="10" type="text" default="" filter="raw" description="Fügen Sie weitere CSS-Definitionen hinzu. Die team-mitarbeiter-Klasse umfasst alle Mitarbeiter der Abteilung." />

Expected result

The purpose of this description is that it is displayed to the user. On the picture in the grey text
image

Actual result

The description is not displayed, as it seems in all modules.

System information (as much as possible)

Joomla 4.1.5 (Linux and Windows Server)

Additional comments

Is there a solution to this?

@Fedik
Copy link
Member

Fedik commented Jun 24, 2022

By default it hidden with d-none (no idea why)

$descClass = ($options['descClass'] ?? '') ?: (!empty($options['inlineHelp']) ? 'hide-aware-inline-help d-none' : '');

in theory you can add attribute inlineHelp="true" to enable it back (from #37819)
But in quick test it does not work for me.

Probably some bugs.

UPD: found, it hidden because this #35610

@Fedik
Copy link
Member

Fedik commented Jun 24, 2022

Maybe @brianteeman have a better hint for you.

@Gratia-Mira
Copy link
Author

@Fedik All right, I have now seen how to show the help. Thanks for the link!

But this does not yet work for "repeatable" xml fields. These are always displayed. That's why I thought something was wrong here.

@brianteeman Should I close the ticket or do you still want to keep pursuing this?

@Fedik
Copy link
Member

Fedik commented Jun 24, 2022

if it works for you, you can close 😉

@chmst
Copy link
Contributor

chmst commented Jun 24, 2022

Simplest solution is the hint Attribute, add information like a placeholder.

@Gratia-Mira
Copy link
Author

Good, thank you all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants