Hide options/values when no articles have this value

Больше
1 год 8 мес. назад #8975 от 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




 

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Работает на Kunena форум

Последнее с форума

    • slowly swung open
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock....
    • в Component / Afisha Joomla
    • One day, a curious boy named
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock....
    • в Component / JL TV
    • top business directory
    • One day, a monkey drove his car near a lake. Sudden, he saw a tiger under a tree. The tiger saw him, too. The tiger ran very fast at the monkey. The monkey was very afraid and he and his car fell...
    • в Component / Afisha Joomla
© 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: Адрес электронной почты защищен от спам-ботов. Для просмотра адреса в вашем браузере должен быть включен Javascript.