I have a view which I would like to add an exposed filter of the author name. So I can filter all the posts created by "John Smith" etc. I can't seem to see it listed under filter. Is this possible to do?
相关问题
- Drupal 8: How do I customize a form widget to show
- drupal :: order complete hook and upgrade user per
- Change redirect in Drupal 7 for Password Recovery
- Adding attachment to Jira's api
- How do I stop drupal from creating a different con
相关文章
- Render a Drupal node
- How to allow multiple blocks in a module of Drupal
- How can I redirect a Drupal user after they create
- Drupal 6: Getting custom fields into the database
- Drupal 7 retain file upload
- Drupal - Set 'user/%/edit/uprofile' to def
- Drupal Session User id for independent script
- Drupal - Replace the home page
Under
Build > Views
(/admin/build/views
)user
)Expose
in the filter configuration section (near to the right border).This is actually a little harder than it sounds. You need to create a "Relationship" to the "Node revision: User", and then under the filter section, choose the User category and pick User:uid, and choose "Use relationship..."
For applying filter using views you can follow the following steps:-
=> Go to administer setting => site building => views => add view => edit the view name and its description also the tag => add a filter in right side => then select on which type of node or whatever you choose and then apply the filter.
suppose if you choose the filter on node then you can select what condition either it is published, type, etc and after doing this you can choose your node type from option(is one of). now you can apply filter on your desired type or node.