Last value preffix?

More
7 years 4 days ago - 7 years 4 days ago #67116 by lipatovroman
Hi!
Select Multiple field have options like Every value prefix and Every value suffix.
Is it possible to add new option - Last value preffix?
So, this option will help to displays values more humanly.
For example. We have values like black, red, blue, green.
If we configure Last value preffix as "and" this field in item view will looks like
black, red, blue and green.
Last edit: 7 years 4 days ago by ggppdk.

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

More
7 years 4 days ago #67119 by micker
Replied by micker on topic Last value preffix?
you can do it by css
ul li:last-child{ ... }
and use content:"";

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
7 years 4 days ago #67121 by ggppdk
Replied by ggppdk on topic Last value preffix?
Hello

there is no such configuration

You can 2 things:
-- either create a custom layout and select it in field configuration
-- or use CSS as micker suggested


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
7 years 3 days ago #67129 by lipatovroman
Replied by lipatovroman on topic Last value preffix?
OK. it is how I solved this right in item view template:
Code:
<?php $fieldtext = $item->fields["colors"]->display); echo preg_replace('/,([^,]+)$/', ' and$1', $fieldtext); // black, red, blue and green ?>

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.265 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