-
☆ A M B ☆
- 397 Posts
Hello,
I am trying to figure out the following:
I have a folder called "contactlist" and underneath this folder I have a list of resources, where each one represents a member of the company. The template for these resources has a TV assigned to it called "categories". This TV is a check box with multiple input option values "Forschung und Entwicklung==forschung-entwicklung||Geschäftsführung==geschaeftsfuehrung||Marketing und PR==marketing||Personal==personal||Umweltschutzmanagement==umwelt||Vertriebsleiter==vertriebsleiter||Vertrieb Oberflächentechnik==vertrieb-ot||Vertrieb Chemikalien==vertrieb-c||Verwaltung==verwaltung".
Some users can belong to more than one group. So in the database it is stored like so "marketing||personal" as an example.
I want to send a snippet the needed category, and have the snippet return an array of resources that belong to that category. It will need to also take care of the above example where a person belongs to more than one category. So if I want a list of all marketing people, the person in the above example would of course also need to be found.
I would greatly appreciate any help I could get.
Thanks.
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
-
☆ A M B ☆
- 397 Posts
I just solved it by using the TVfilter already supplied in getResources. It worked great!
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.