To reproduce:
- Create a new view, with at least one argument
- Set the overall view title to 'A', and the argument title to '%1'
- Create a views pane for the view, and set the argument to 'input on panel config' (for easy testing)
- Add the pane to a new panel, and set the argument to something that should show some results
- Note that the title is still at 'A', rather than the argument value you set (as it is whenever the same view as a page or block)
This is occurring because the arguments are not being passed into views_get_title(), and so you always get the default view title, no matter what arguments you pass in. Of course you can always override the title for the pane itself, but this duplicates work and can lead to inconsistency.
See attached patch.
| Comment | File | Size | Author |
|---|---|---|---|
| panels_views_title_args_0.patch | 705 bytes | owen barton |
Comments
Comment #1
sdboyer commentedNice catch. Committed for beta3. Thanks.