Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
If the view name has an underscore (i.e. "view_name"), the Theming information in the UI changed the underscore to a hyphen and then proceeded to report that the Display Output default file (views-view--view-name.tpl.php) did not exist. The theming then proceeded to use views-view--view_name.tpl.php during theme processing.
Proposed resolution
Patch attached. If the view name has an underscore, don't lose it in views_plugin_display::format_themes().
Comment | File | Size | Author |
---|---|---|---|
views_plugin_display_underscore_name.patch | 811 bytes | dnmurray | |
Comments
Comment #1
MustangGB CreditAttribution: MustangGB commented