Posted by eminencehealthcare on February 14, 2013 at 6:22pm
4 followers
Jump to:
| Project: | Views |
| Version: | 7.x-3.5 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I am using a filter content: type and I have checked boxes for many content types.
I would like to apply another filter that only effects ONE of these content types without changing all the other content types.
Is there a way to do this?
Comments
#1
You could connect multiple filters with an logical OR to achive that. Therefore click on the dropbutton on the filter section and choose "rearrange/or".
#2
I see. What if I wanted to just show a "field" for a particular content type.
So each row is a content type right, how do I get a field to only show on a specific content type?
#3
I should have opened a new issue for this question but I have another one related to the original post.
I want my filter to only effect one content type.
I have tried every "and" / "or" configuration and the filters effect all content types not just one.
#4
If you can't achieve it with and/or, you can't achieve the filter without writing custom code. While Views' OR groups aren't capable of doing everything in SQL, we opted for a compromise between usability and flexibility in the OR group UI. Your only other option will be to write a custom filter that can modify the query accordingly.
As for the fields, Views doesn't have a way to make fields appear or not appear based on some other data in the result. There are a couple of ways to achieve this.
1) Write a custom field template that has your logic to make the field appear or not.
2) Use Views PHP field similar to 1.
3) Use view modes that it's handled by a node template and renders to your specifications.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.