Hide options/values when no articles have this value

More
1 year 5 months ago #8975 by Jip Jonker
Thanks for this free module! Very useful.

Would it be possible to exclude items from the dropdown filed (in the filter module) when none of the article have that value set i the custom field? This would prevent the list being empty when a user selects an option in the list.

For example:
- There are 10 articles
- The article custom field has three values: red, blue and green.
- Some article have the option 'red'. Some have the option 'blue'.
- None of the articles have the option 'green'.

In the dropdown only 'red' and 'blue' options / choices are visible in this scenario.

When a new article is added that has the selected value of 'green' this option will be added to the dropdown.

Would that be possible?

Kind regards,
Jip




 

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

Powered by Kunena Forum

Last from the forum

    • JL Content Fields Filter в настройках полей нет та...
    •   Здравствуйте. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 отсюда с гитхаба скачал и установил на джумла версии 4.1.5 со страницы установка расширений. После установки появилась ошибка " Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found" Зашел на фтп по пути /plugins/system/ и перенес папку в /plugins сменив namespace. Дальше все по инструкции - в системе активировал плагин. В модулях включил. Захожу в созданное поле - есть стандартные вкладки, вкладки "Параметры фильтрации" нет. Что делать? >>>>>>>>>>>>>>>>>>>>> Hello. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 I downloaded version 4.1.5 from GitHub and installed it on Joomla from the extension installation page. After installation, an error occurred: "Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found." I went to ftp at /plugins/system/ and moved the link to /plugins, changing the namespace. Then everything according to the instructions - the plugin was activated in the system. It is enabled in the modules. I go to the created field - there are standard tabs, but there is no "Filter parameters" tab. What should I do?  
    • In Modules Joomline / JL Content Fields Filter
    • JL Content Fields Filter в настройках полей нет та...
    • Здравствуйте. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 отсюда с гитхаба скачал и установил на джумла версии 4.1.5 со страницы установка расширений. После установки появилась ошибка " Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found" Зашел на фтп по пути /plugins/system/ и перенес папку в /plugins сменив namespace. Дальше все по инструкции - в системе активировал плагин. В модулях включил. Захожу в созданное поле - есть стандартные вкладки, вкладки "Параметры фильтрации" нет. Что делать? >>>>>>>>>>>>>>>>>>>>> Hello. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 I downloaded version 4.1.5 from GitHub and installed it on Joomla from the extension installation page. After installation, an error occurred: "Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found." I went to ftp at /plugins/system/ and moved the link to /plugins, changing the namespace. Then everything according to the instructions - the plugin was activated in the system. It is enabled in the modules. I go to the created field - there are standard tabs, but there is no "Filter parameters" tab. What should I do?
    • In Plugins Joomline / Other plugin
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.