I have created a pretty standard view of articles, and it has a contextual filter based on a taxonomy term id in the URL. The view is being displayed in a block.
The view works perfectly, and the filter works as expected. In the settings of the contextual filter, under "When the filter value IS available or a default is provided", I've ticked "Override title". It has a value of "Latest {{ arguments.tid }} News & Projects". (see screenshot).
When I Preview with contextual filters and supply a value of 1, the title changes as expected. (see screenshot)
However, the block's title isn't being changed when I look at the block itself. The contextual filter is working and filtering the articles that are being displayed; its just the title that isn't changing. I switched to core's Bartik theme to make sure it wasn't my theme causing the issue, but that didn't solve it. (see screenshot)
I'm not overriding the block's title.
Additional info: I have a very similar view somewhere else on the site being displayed as a page (not in a block) also with a contextual filter, and there the title gets changed as expected.
Comment | File | Size | Author |
---|---|---|---|
screenshot-localhost 2016-08-07 21-09-01.png | 12.95 KB | droces | |
screenshot-localhost 2016-08-07 21-09-34.png | 15.32 KB | droces | |
screenshot-localhost 2016-08-07 21-11-14.png | 14.59 KB | droces |
Comments
Comment #2
droces CreditAttribution: droces commentedComment #3
LendudeMoving to the right queue and closing as a duplicate of #2773071: Override title when filter is available does not show new title
Comment #4
LendudeAnother duplicate of this #2361481: Argument validations doesn't set the block title anymore