Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / Field type - Drop down autocomplete?

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

Field type - Drop down autocomplete?

More
8 years 5 months ago #22374 by bestintown
Field type - Drop down autocomplete? was created by bestintown
Hello,
Is it possible to make a dropdown field to be autocomplete type? like exists for the categories.

I've got a really long list as a dropdown field and it would be great if the user only needed to write the first letters and the field suggested the rest.

Thanks!
The following user(s) said Thank You: TehranSD
More
8 years 5 months ago #22388 by loic
Replied by loic on topic Field type - Drop down autocomplete?
Hello,

Joomla load the chosen libraries, you can try to add the 'chosen' class to the dropdown fields in your view.

Best regards.
More
8 years 5 months ago #22390 by bestintown
Replied by bestintown on topic Field type - Drop down autocomplete?
sorry, but what do yu mean by "your view"?
More
8 years 5 months ago #22398 by loic
Replied by loic on topic Field type - Drop down autocomplete?
Hello,

Sorry for the lack of details. By 'your view', I speack about the edit view of AdsManager 'components/com_adsmanager/views/edit/tmpl/default.php' or if you are using a template override 'templates/your_template/html/com_adsmanager/edit/default.php'.

Best regards.
More
8 years 5 months ago #22409 by bestintown
Replied by bestintown on topic Field type - Drop down autocomplete?
Thanks...but how can I target the Drop down fields in that .php? I can't find any string labeled as dropdown or similar in it...sorry about my ignorance!! I'm quite new in this :silly:
More
8 years 5 months ago #22415 by loic
Replied by loic on topic Field type - Drop down autocomplete?
Hello,

Sorry, it's my fault for not giving you enought details.

The lines that display the category select are those :
case 'normal':
                                JHTMLAdsmanagerCategory::displayNormalCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break;
                        case 'color':
                                JHTMLAdsmanagerCategory::displayColorCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break;
                        case 'combobox':
                                JHTMLAdsmanagerCategory::displayComboboxCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break;
                            break;
                        case 'cascade':
                                JHTMLAdsmanagerCategory::displaySplitCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break;

To add the class, you need to change those lines like this:
case 'normal':
                                JHTMLAdsmanagerCategory::displayNormalCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center chosen"));break;
                        case 'color':
                                JHTMLAdsmanagerCategory::displayColorCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center chosen"));break;
                        case 'combobox':
                                JHTMLAdsmanagerCategory::displayComboboxCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center chosen"));break;
                            break;
                        case 'cascade':
                                JHTMLAdsmanagerCategory::displaySplitCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center chosen"));break;

Best regards.
Moderators: perry
Time to create page: 0.173 seconds
Powered by Kunena Forum