Hide options/values when no articles have this value

More
2 years 3 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 to join the conversation.

Powered by Kunena Forum

Last from the forum

    • Место вывода кнопок
    • Не работает кнопка { jllike } - для вывода плагина (без пробелов) Невозможно вывести кнопки при разрыве страницы. Например, при 10 разрывах страны, или, по сути, 10 страницах, кнопки соц сетей, только на последней странице! Как вывести кнопки на всех страницах при разрыве страницы? Или каким тегом на 1 странице в 2025 году, если тег { jllike } давно не работает?
    • In Plugins Joomline / JL Like / JL Like PRO
    • Карта сайта для компонента JoomMedia
    • Здравствуйте. Уже 2 года не могу создать карту сайта для компонента JoomMedia, который покупал: 1. В компоненте JSitemap нет такого источника данных, а сам не могу создать SQL запрос карты сайта для JoomMedia 2. В компоненте JL Sitemap нет плагина JoomMedia. Сможете помочь по любому из 2-х пунктов, могу оплатит расходы, компонент JoomMedia находится по ссылке drive.google.com/file/d/1xg4oQzcmYhJ1NGP...sw2/view?usp=sharing Компонент в работе: 4in.ru/sport.html  
    • In Component / JL Sitemap
© 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.