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

rex_note Felder für Notes mit ausgeben #366

Closed
cukabeka opened this issue Jan 27, 2025 · 1 comment
Closed

rex_note Felder für Notes mit ausgeben #366

cukabeka opened this issue Jan 27, 2025 · 1 comment

Comments

@cukabeka
Copy link
Member

Im Global Settings addon und im REX Backend allgemein gibt die Möglichkeit, Notes zu einem Inputfeld hinzuzufügen. Das ist sehr nützlich nicht nur für Erklärungen, sondern auch, wenn das Label sonst zu lang wäre. Ich nutze das in Addons etc sehr häufig.
In den Global Settings sieht das so aus:

Image

Die Codeausgabe ist dann:
<p class="help-block rex-note">Prefix "translate:" übersetzt den Wert via I18N</p>

Ich würde das gerne auch in MBlock machen können; das würde die Modul-Inputs sehr aufräumen. Ich stelle mir das z.B. so vor:

$mform->addSelectField(4, [
    'mt-2' => 'Kleiner Abstand',
    'mt-4' => 'Mittlerer Abstand',
    'mt-5' => 'Großer Abstand',
], ['label' => 'Vertikaler Abstand','note' => 'Der vertikale Anstand zwischen Bild und Text']);

@cukabeka cukabeka changed the title rex_note felder mit ausgeben rex_note Felder für Notes mit ausgeben Jan 27, 2025
@skerbis
Copy link
Member

skerbis commented Jan 27, 2025

->addDescription('Dein Text')

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

No branches or pull requests

3 participants