Search Drupal by User and Category
December 11, 2008 6:14 PM Subscribe
Is it possible to do a search on a Drupal site for only those posts/nodes that are from a specific user and which have specific tag/taxonomy term? Something like "user:33 AND category:14"?
I have a Drupal installation for my language arts class. All of the kids' posts are tagged (categories) by the name of the assignment. All of the kids have their own user accounts. I have some recurring assignments, and it'd be convenient to be able to search for all instances of that assignment for a particular kid. Something like "user:Joey AND category:journal".
Can't seem to find anything that'll do it, but wondered if there's a good module out there? Current installation of Drupal is 6.7. I'm comfortable installing and configuring modules, and have a bit of experience with php (though writing my own module is beyond my skills).
I have a Drupal installation for my language arts class. All of the kids' posts are tagged (categories) by the name of the assignment. All of the kids have their own user accounts. I have some recurring assignments, and it'd be convenient to be able to search for all instances of that assignment for a particular kid. Something like "user:Joey AND category:journal".
Can't seem to find anything that'll do it, but wondered if there's a good module out there? Current installation of Drupal is 6.7. I'm comfortable installing and configuring modules, and have a bit of experience with php (though writing my own module is beyond my skills).
You want to install the Views module. Then you can set up a view that will pull, say, all assignments. To that, you can add arguments to narrow it down to all assignments by Joey with the taxonomy term "journal." So, in short, you'd end up with your basic view at, say, "mysite.com/assignments," and then to see Joey's journals, you'd go to "mysite.com/assignments/56/34," where "56" is Joey's user ID and "34" is the term ID for journals.
posted by bricoleur at 6:28 PM on December 11, 2008
posted by bricoleur at 6:28 PM on December 11, 2008
Response by poster: I'll give that a whirl - looks like exactly what I need. Thanks so much!
posted by Chanther at 12:54 PM on December 12, 2008
posted by Chanther at 12:54 PM on December 12, 2008
« Older Lost a Sci-Fi Short Story. Can You Help Me Find It... | What do you do with 3lbs. of mercury? Newer »
This thread is closed to new comments.
It bent my mind a bit the first time I installed it. Good luck.
posted by Fiasco da Gama at 6:24 PM on December 11, 2008