Posts

Showing posts with the label Views

Override Default Blog View

Image
Drupal by default creates a blog view for evry use at sitename.com/blogs/user-name. To override this view with your custom one, create a page view of content type Blog Entry, with path as "blogs/%". Add "Content: Author" in Relationship. As you can see in below screen shot. Now you need to filter it by the author of content. In contextual filter use "(Author) user: Uid" with selection of "Specify Validation Criteria", Choose user as "Validator". See attached screen shot for this. And there you go. Now what ever url you set in path auto, it will get that automatically.

help with hook_views_query_alter

Hope this must be helpfull