Problem/Motivation

The following template does not follow Drupal's naming convention and contains a space in it's file name.
http://cgit.drupalcode.org/platon/tree/templates/views-view-field--Audio...

This causes:
- Inability to easily add it to a git repository for tracking on a custom profile based on the Opigno one.
Git gives out the following error:
$ git status | grep files--page--actions.tpl.php
new file: profiles/opigno_lms/themes/platon/templates/views-view-field--Audio files--page--actions.tpl.php

git add .
git commit ...
Could not open input file: files--page--actions.tpl.php

It is treating it as 2 separate files

- Likely inability to use the template from Drupal, as it is replacing spaces with '-' when provided to look-up a template.

Proposed resolution

Rename the template from: views-view-field--Audio files--page--actions.tpl.php
to: views-view-field--Audio-files--page--actions.tpl.php
Note is the capital letter OK? Shouldn't it be views-view-field--audio-files--page--actions.tpl.php actually?

Remaining tasks

Patch, review, RTBC, commit.

User interface changes

None are expected.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ndobromirov created an issue. See original summary.

ndobromirov’s picture

Here is a patch that solves it with changing the space to a dash in the file name.

ndobromirov’s picture

Status: Needs work » Needs review
FileSize
3.19 KB

Here is the other, that adds the dash and changes the casing to lower.