Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Aug 2012 at 15:18 UTC
Updated:
29 Jul 2014 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jenlamptonHere's a go at rearranging the template files.
Comment #3
jenlamptonOkay, this time let's make the theme check for the templates in those new directories.
(also moved seven templates, and removed the 'path' definition in hook_theme for toolbar module)
Comment #5
albert volkman commentedRe-roll with renames instead of delete/creates. Also included a test only patch for easier testing.
@jenlampton If you run 'git config --global diff.renames copies', future git diffs will create rename patches so that a moved file's history is preserved.
Comment #7
crazyrohila commentedassigning.
Comment #8
sunYeah, please use git's
renames = copiesconfig option to roll this patch. Significantly reduces the chance for having to re-roll the patch, too, because the actual file contents are not contained in the patch.See our Configuring Git documentation. It's highly recommended to apply the entirety of recommended git options stated there.
The latest patch here contains many irrelevant changes for other issues though.
Comment #9
crazyrohila commentedCreated patch by using renames/copies instead of create/delete.
Comment #11
podarok#9: move-template-files-in-templates-folder-1760530-9.patch queued for re-testing.
Comment #13
risse commented#9: move-template-files-in-templates-folder-1760530-9.patch queued for re-testing.
Comment #15
risse commentedThis patch is failing because it is still looking for system template files in core/modules/system, not core/modules/system/templates.
Comment #16
risse commentedHere is the revised patch, based on #9
Comment #17
risse commentedAlright, new try.
Here is the revised patch, based on #9
Comment #18
podarok#17 looks good for me
Comment #19
bleen commentedI love this ...
Patch applies and everything on the theme layer seems to be working fine for me ... testbot seems happy. Combine that wil podarok's thumbs up in #18 and I'd say this is RTBC
Comment #20
catchWhy just modules and not themes?
Comment #21
podarok#20 agree with that!
Comment #22
justafishThe theme engine is already looking for template suggestions under all theme subfolders, so the seven templates just need moving.
Comment #23
fabianx commentedThat is good to get #1696786: Integrate Twig into core: Implementation issue more cleanly in.
RTBC and re-roll to apply cleanly to 8.x
Comment #24
fabianx commentedAs this is important for contrib modules to know, I guess this needs a change notification.
Comment #25
catchCommitted/pushed to 8.x, thanks!
Comment #26
tim.plunkettI didn't see this issue until it showed up in the commit logs, but I must say, BRAVO!
Comment #27
eric_a commentedThis patch deals with the case where the 'path' property is not in use. If path is declared you cannot easily have include files in '[path]' and templates in '[path]/templates'. What would be the recommendation for modules that currently have templates and include files in a 'theme' directory?
Comment #28
eric_a commentedTwo things I've noticed so far for a follow-up.
The _theme_process_registry() doxygen is incorrect now.
The core/modules/field/theme/field.tpl.php template wasn't caught by the tests because it is not used and exists as a starting point for customization only.
Comment #29
eric_a commentedComment #30
tstoecklerFollow-up is RTBC.
Comment #31
chx commentedI wrote the change notice so that once the followup is committed this can be set to fixed.
Comment #32
webchickCommitted and pushed to 8.x. Thanks!
Sounds like this should be back to fixed now, given #31.