I am trying to create a View that will be a sidebar block on node pages of various content types. The View is pretty basic, just a linked title. I figured I could use Contextual Filters (what used to be Views Arguments in Drupal 6) so I don't have to set up many Views that will all be the same and just use one for all.
My goal is to get only nodes in the sidebar block View of the same type to show up on a node page. So for example on a single Blog node page, the sidebar View will only show other blog stories. However, that same View on a News content type node page will only show other News stories in the View sidebar block and so on...
I have various content types including "News", "Services" and "Blog".
Here is what I have tried so far.
- Set up the basic View, showing linked titles.
- Added a contextual filter using
"When the filter value is NOT available"
- Provide default value >> Content id from URL
"When the filter value IS available or a default is provided"
- "Specify validation criteria" >> Validator >> Content >> Checked off the content types I want i.e. Blog, News, Services.
After I save this, no data shows up on any of the node pages. I also tried playing around with other various options in the Contextual settings but to no avail. My google-foo is also failing as everything I found for something like this deals with Taxonomy and that's not what I am after here.