Fix views pane title override

Created on 25 September 2023, almost 2 years ago

Problem/Motivation

Not sure why this was never implemented, but there's an option when creating a ctools Views pane to override the title. A checkbox exists in "Allow settings" that is titled Title override. Currently in the code, the pane title is set by default as the value of $block->title, but there are no options to change it.

Steps to reproduce

Implement a ctools Views pane, and select to use Title override as an Allow setting. After the view is built, add the pane to a Panels page. In the settings menu, there is no option to override the title.

Proposed resolution

See the attached patch. This should take care of the issue by allowing $block->title to be overridden if a value is set.

Remaining tasks

Please review and provide any feedback, thanks.

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

CTools Views

Created by

πŸ‡ΊπŸ‡ΈUnited States ron_s

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024