FLEXI_PLEASE_SELECT [Solved]

More
12 years 8 months ago - 12 years 2 months ago #18016 by aloisio
Hello
In a select field:
I put the value "historia" in the "default value" parameter.
In the other parameter "flexi_label_or_value" I select FLEXI_VALUE.
The field appears with the value "historia" selected, but appears the "flexi_please_select" like a option.
The field before clic:
[attachment=1:zeo2zntn]<!-- ia1 -->aa select1.JPG<!-- ia1 -->[/attachment:zeo2zntn]
The field after clic:
[attachment=0:zeo2zntn]<!-- ia0 -->aa select2.JPG<!-- ia0 -->[/attachment:zeo2zntn]

Regards
Attachments:
Last edit: 12 years 2 months ago by aloisio.

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

More
12 years 8 months ago #18018 by ggppdk
Replied by ggppdk on topic FLEXI_PLEASE_SELECT [Solved]
please check your language file:
language/fr-FR/fr-FR.com_flexicontent.ini

Search for string: FLEXI_PLEASE_SELECT
There should be a line:
FLEXI_PLEASE_SELECT=Veuillez sélectionner

same for file:
administrator/language/fr-FR/fr-FR.com_flexicontent.ini
a line
FLEXI_PLEASE_SELECT=Sélectionnez...


-- 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 8 months ago #18026 by aloisio
I have erased this line in language files and his space appears empty in the field.
In this field, I need should appear only options, and the default will be the first option.
This string "flexi_please_select" can't appears anywhere.

Regards

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

More
12 years 8 months ago #18032 by micker
Replied by micker on topic FLEXI_PLEASE_SELECT [Solved]
you can add this on your language.ini

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
12 years 8 months ago #18039 by aloisio
I want to remove the string, not add at the options field.
The string may not appear.
At the lenguaje files I already erased.

Regards

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

More
12 years 8 months ago #18043 by ggppdk
Replied by ggppdk on topic FLEXI_PLEASE_SELECT [Solved]
I would suggest that yo do not erase this Language string.

The reason this appears , is that this select dropdown is a filter.
On initial loading it is supposed to load without any filters set.

BUT You can make the filter to be set to an option by appending this to the URL:
&filter_57=geografia

The 57 is the id of the field. To find the id of the filter go to Backend field manager and list the fields, the last column is the id.

If you want to remove the first option of the of any filter,
then you must remove this code from the html of the field:
<option value="">...</option>

In category_items.php
Just before:
echo $filt->html;

put:
Code:
if ($filt->id == 57) $filt->html = preg_replace("/\<option (value=\"\"[ ]*|selected=\"selected\"[ ]*\>)+[^\<]*\<\/option\>/", "", $filt->html);

Note a future FC version may break this replacement ..

Regards


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