pre&post text on Select Multiple are not working.

More
12 years 7 months ago #29905 by brandonking
Hi FC team,

I guess there is a bug in Select Multiple.
Please refer image attached for Select Multiple settings.

The result is:
Code:
<div id="multipletextselector"> <ul>Yes No1 No2</ul> </div>
There is no <li> tags for each value.
Attachments:

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

More
12 years 7 months ago #29906 by brandonking
Hi,

On line 324 in selectmultiple.php,
Code:
$display[] = [u]$pretext . [/u]JText::_($text_or_value ? $listarray[1] : $listarray[0])[u] . $posttext[/u];

underlined variable were missing.

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

More
12 years 7 months ago #29907 by ggppdk
thanks for report,
anyway,
this code for checkbox, checkboximage, radio, radioimage, select, selectmultiple, has been unified (together with other plugin code of flexicontent fields) trying to finish search feature


-- 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
12 years 7 months ago #29913 by brandonking
I am very happy to hear that. Sounds great.

By the way, I am trying to show all of select multiple options in front-end view. and some of selected options by user would have different looking by setting prefix/suffix and CSS.

If there are two options:
1. Display option to choose: show all /show only seleted
2. Add options to set prefix/suffix for non-selected mutiple field to make different looking from selected multiple.

What do you think?

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

More
12 years 7 months ago #29917 by brandonking
Hi,

This is for element mode not SQL mode.
I have edited multiple select to get result how I want it. Please see image.

To get same result:
1.Go to function onDisplayFieldValue
2.Find comments //Elements mode
3.Go to foreach ($listarrays as $listarray)
4.You have to create If Else statement and put step3 Foreach into both If and Else bracket.
5.You have to set value in XML file and bring it to if condition.
6.Add below code
foreach{
$countValues=0; <-- ADD this
for{
if{
}
Below code HERE
}
}
Code:
if ($values[$n] != $listarray[0]) { $countValues++; } if($c == $countValues){ $display[] = $ns_pretext . JText::_($text_or_value ? $listarray[1] : $listarray[0]) . $ns_posttext; }

Final looks will be like this:
Code:
if{ foreach{ $countValues=0; <-- ADD this for{ if{ } Above Code Here } } }else{ foreach{ for{ if{ } } } }
Attachments:

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

More
12 years 7 months ago #29931 by ggppdk
prefix and suffix text exists for SQL mode,
but it is missing for elements mode (this is a bug),

anyway this is fixed in the unified code used by all indexable fields:
checkbox, checkboximage, radio, radioimage, select, selectmultiple


-- 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.445 seconds
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
Save