Line break with Multi-Select Fields [solutions]

More
14 years 1 month ago #11127 by rjo
Hello,
Just a little note concerning multi-select fields displayed as comma separated lists.
In narrow columns the display of multi-select field values may distort the layout, because the version 1.5.3c inserts 'comma + non-breaking space' as the value separator for comma separated lists. That may result in multiple values to become one long unwrappable string.

How to resolve it:
Solution A)
Select custom separator and enter '& # 3 2 ;' (without the spaces)
Disadvantage: the first time you save or apply field parameters this decimal entity is converted to a space character. If you change something again, the space is trimmed/removed. So you have to remember to enter the HTML entity for a space each time you configure this field type.

Solution B)
Edit /plugins/flexicontent_fields/selectmultiple.php
and replace in line 193
$separatorf = ',& nb sp;';
with
$separatorf = ', ';

If have not done any extensive testing. There might be a reason to use a non-breaking space here, but changing this line, resolved my formatting issue with comma separated lists.
I'd suggest to consider changing this in the core code.

Have a good day

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.733 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline