Hi all, I’m using Mark Huot’s “Custom Fields in {exp:weblog:entries /}” extension. To have a page that only displays entries with a certain custom field checked as Yes.
To give you a little background the site is for company that have hundreds of stockists of their various products. There are 5 types of products that each potentially can stock
FABRICS, WALLPAPERS, PAINTS, PAINT POTS, TRIMMINGS & FURNITURE
Some stock fabrics and wallpapers, some only stock furniture etc.
I have set up a number of checkboxes (each a seperate custom field) that my client can ‘tick off’ what the stockist offers. This then via conditionals displays a little icon that shows what they stock.
I use the extension to have a page that only show people who stock FURNITURE (if furniture has been selected in the entry). This works great on the page with the entries on but *all the entries are in categories* (which are regions across the world) so I need to be able to have a page that displays ONLY the categories that have entries with the custom field marked as Yes in the entries tag.
This is the entries code, you can see that the last part that stipulates if the {stockist-paint} custom field is marked with Yes the entries show.
{exp:weblog:entries weblog="stockists_uk|stockists_europe|stockists_world" limit="9" stockist-paint="Yes"}
This is the categories page code
{exp:weblog:categories weblog="stockists_uk|stockists_europe|stockists_world" show_empty="no" style="linear"}
<li><a href="http://{path=">{category_name}</a></li>
{/exp:weblog:categories}I’ve asked the maker of the extension if it can be made to work at the category level but I haven’t heard back in a while and the deadline is looming so I wondered could you use the entries tag within the categories tag to somehow use the parameters set on the entries tag affect the weblog categories tag???
Let me know if you need any of that clarifying
Thanks