How to display a group/tab label on 2 rows?

RobertG

Member
Hi,

I'm trying to use two languages for the labels of a form (see picture) without multilingual management.
I would like to display the english label above the spanish one.
I tried "<br/>" and "\n", but it doesn't work.
Is it possible to do that?
 

Attachments

  • Capture d’écran 2023-08-01 194945.png
    Capture d’écran 2023-08-01 194945.png
    8.4 KB · Views: 52
HTML in group labels is not supported.
You can
  • Use language strings (this is not necessarily multilang): add an language override for your frontend language, something like
    Lang. Constant: STAY, Text: Stay/<br> Estancia

    or

  • Use custom CSS: set eg
    .fabrikForm .nav-tabs {flex-wrap: nowrap; }
    to break inside the labels instead of wrapping the group labels. You can use &nbsp; inside your labels to force a linebreak only on "real" spaces.
 
Thanks troester,

I tried many ways but no one works.
In the language override "<br/>" was replaced by "\n" and I had no change on the label.
Flex-wrap can't be used and I didn't find what to use instead.

So I manually changed in the override.ini file to "Stay<br/>Estancia" and it works. I don't understand why the override function didn't work there as expected and changes the "<br/>".
 
Strage, the override editor is working fine on my site with HTM. (Atum backend template, logged in as superuser, GlobalConfig/Textfilters all default).

Why can't you use flex-wrap?

upload_2023-8-2_9-17-45.png
 
I'm using J! 4.3.3, Atum, no filtering too. The site was created 3 years ago with J3.
See the attached pictures: "<br/> is erased when I save

I just find why! I used "<br/>" (without space) and it works with "<br /> as you did.
 

Attachments

  • Capture d’écran 2023-08-02 153426.png
    Capture d’écran 2023-08-02 153426.png
    18.5 KB · Views: 48
  • Capture d’écran 2023-08-02 153517.png
    Capture d’écran 2023-08-02 153517.png
    17.4 KB · Views: 45
Funny.
I originally used just <br>, which got changed to <br /> by whatever...

And <b>xx</b> was working once in the form but is gone, too, after re-opening the editor.
So it seems HTML is not really supported in this editor (but at least <br /> is working;))
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top