Problem with Drop-down list (single select)

  • Krx
  • Topic Author
  • Visitor
  • Visitor
6 years 2 months ago #4962 by Krx
Hello

I have a problem. I have two Drop-down list (single select) fields.
Check Screenshot_1 attached image for settings of one of those fields.
These are the values:

0::Select
1::Berkshire
2::Cape Cod and the Islands
3::Minuteman
4::Pilgrim
5::Pioneer Valley
6::Sturbridge

Now please visit this URL: www.campmass.com/directories.html

1st problem:
First and second drop down select field should display their names by default: "Regional" and "Attraction type"
But they show "Select" by default
- ALL items have this field changed into something other than first select item "Select" in item manager
- How to fix this?

2nd problem:
which is related to first problem:
2nd drop down list "Attraction type" is also showing "Select" as default when viewing map.
Not all of the items have this field changed into something other than first "Select" line in item manager.
- How to fix this?

IMHO if nothing is set in backend item manager for these two fields, so that first item "Select" with value 0 is set,
frontend shouldn't display "Select" within other items in drop down. It should only show first line as name, and other items respectively , if value for that item is greater than 0, like in Screenshot_2 attached image

Please suggest solution.

Gmap pro J3.119P Août 2018
Joomla 3.8.13

Thanks,
Regards
Attachments:

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

  • Krx
  • Topic Author
  • Visitor
  • Visitor
6 years 1 month ago #4964 by Krx
Hello

No support for this?

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

  • Krx
  • Topic Author
  • Visitor
  • Visitor
6 years 1 month ago #4965 by Krx
Hi

I couldn't wait for (slow) support any more so I've found a solution by myself:

in com_gmapfp/models/gmapfp.php file, approx line 372,
I changed this line:
$cn++;
$valeurs[iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', substr(strstr($param, '::', 0),2))] = JHTML::_('select.option', strstr($param, '::', 1), substr(strstr($param, '::', 0),2) );

into this:
if(strstr($param, '::', 1) > 0){
$cn++;
$valeurs[iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', substr(strstr($param, '::', 0),2))] = JHTML::_('select.option', strstr($param, '::', 1), substr(strstr($param, '::', 0),2) );
}

So drop down list filter doesn't show items with value 0

HTH someone,
Regards

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

More
6 years 1 month ago #4966 by gmapfp
Hi Krx,

Sorry for the time, but I had forget this post.

For the Pro version send me a email adn if I'm not reply in two days, resend me an alert.
Normally, I answer in 1 day.

There are realy a bug.
But the problem is in file /administrator/coponents/com_gmapfp/models/helpers/champs.php

You don't need to write :
0::Select
This value must be add automatically for the single select drop-down list.

I will publish the update.

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

Time to create page: 0.135 seconds
Powered by Kunena Forum
FaLang translation system by Faboba