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.
Comment | File | Size | Author |
---|---|---|---|
#3 | platon-space-in-template-filename-lowercase-D7-2.patch | 3.19 KB | ndobromirov |
#2 | platon-space-in-template-filename-D7-2.patch | 3.19 KB | ndobromirov |
Comments
Comment #2
ndobromirov CreditAttribution: ndobromirov commentedHere is a patch that solves it with changing the space to a dash in the file name.
Comment #3
ndobromirov CreditAttribution: ndobromirov commentedHere is the other, that adds the dash and changes the casing to lower.