Discussions

Exposed Filters of Taxonomy Term + percentage releated to Term

Im trying to create a "views exposed filter" to a content type(which is actually a product from Drupal Commerce) which looks more or less like this: http://i42.tinypic.com/23swwa8.jpg

in bottom right corner you can see "material"(fabric) and.. Im not sure how it should be described by fields, I could create like 10 different taxonomy term references for each potential material (fabric) but then.. if after sometime I would need to add another material, I would have to edit like 10 content types,

and Im looking for other possibilities of how it can be solved and then used to created expsoed filter if someone would like to see only clothes that have more then 50% silk in them any ideas how to make it happen ?:(

Narhir
Posted: Feb 25, 2012

Comments

Narhir Narhir on February 27, 2012

Hello,

I just found solution to my problem, so.. basically for every "Fabric" / "material" I created different "integer field" with names like field_fabric_cotton now Im planning to create like all possible materials in views so tehre would be around ~20 exposed filtrs after that Im planning to theme it, so first user will choose filter he want to use, and then this filter will show up :)