Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
layout.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jan 2013 at 05:38 UTC
Updated:
29 Jul 2014 at 21:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
c4rl commentedTagging
Comment #2
duellj commentedAttached patch converts one-col.tpl.php and two-col.tpl.php to twig templates. Doesn't seem like much else needs to happen for converting this module to twig.
Comment #4
duellj commentedIgnore the patch from #2, left out the two column template conversion.
Comment #5
joelpittet@duellj great work that seems to be the ticket!
Needs a bit of docblock cleanup and it's RTBC
http://drupal.org/node/1823416
I think it's just the
$'s and the[]and maybe some labelingAvailable variables:@ingroup themeableComment #6
duellj commentedThanks for the review @joelpittet.
I've cleaned up the docblocks and added in comments for the attributes variable.
Comment #7
joelpittetCool, I some manual testing and seems to do exactly as advertised. Nice work!
Just removed the whitespace error in the patch.
Comment #8
joelpittetWhoops, wrong patch files.
Comment #9
xjm#8: 1898424-7-twig-layout.patch queued for re-testing.
Comment #10
nikkubhai commented#8: 1898424-7-twig-layout.patch queued for re-testing.
Comment #11
star-szrI think we should be converting these two templates as well:
core/modules/layout/tests/layouts/static/one-col/one-col.tpl.php
core/modules/layout/tests/themes/layout_test_theme/layouts/static/two-col/two-col.tpl.php
Comment #12
star-szrCNW for #11.
Comment #13
joelpittetConversions added from #13, thanks @Cottser for spotting those.
Comment #14
star-szrThat was quick, thanks @joelpittet :)
Minor docs tweaks and then I think we can go back to RTBC-land.
Instead of "An array of content" how about "All content items", and instead of "each item in the array" how about "each content item"?
No colon after @ingroup.
Comment #15
joelpittetChanges from #14
Comment #15.0
joelpittetAdd conversion summary table
Comment #15.1
star-szrUpdate remaining
Comment #16
star-szrPerformed manual testing (looks great) and added testing steps to summary. This patch only rewraps comments, so RTBC!
Great work @duellj and @joelpittet :)
Comment #16.0
star-szrAdd testing steps
Comment #16.1
star-szrTweak testing steps
Comment #16.2
star-szrRemove sandbox link
Comment #17
c4rl commentedPer #1757550-44: [Meta] Convert core theme functions to Twig templates, retitling to indicate this issue applies to templates rather than theme_ functions (though there are no theme_ functions in this module).
Comment #17.0
c4rl commentedUpdated issue summary.
Comment #18
joelpittetComment #19
star-szrTagging for profiling.
Comment #20
mr.baileysAssigning to myself for profiling.
Comment #21
mr.baileysAll tests with Stark, disabled overlay, enabled APC class loader
For
admin/structure/templates/manage/static_layout%3Alayout__two-colFor
admin/structure/templates/manage/static_layout:layout__one-colComment #22
mr.baileysIgnore above numbers, talked to @Cottser and I did not have a node displayed on the page.
Comment #23
star-szrI'll run through this one, thanks @mr.baileys!
Comment #24
star-szrProfiling is looking good on this one, not much fluctuation.
one-col template:
http://www.lionsad.de/xhprof-kit/xhprof/xhprof_html/?run1=519bea45d25a7&...
http://www.lionsad.de/xhprof-kit/xhprof/xhprof_html/?run1=519bea45d25a7&...
two-col template
http://www.lionsad.de/xhprof-kit/xhprof/xhprof_html/?run1=519c10e55cf0a&...
http://www.lionsad.de/xhprof-kit/xhprof/xhprof_html/?run1=519c10e55cf0a&...
Comment #25
star-szrDocs tweak please and then back to RTBC and ready to be alexpotted :)
Can we please change all these so that we are not doing e.g. 'content.content', since we want indenting in a list to mean 'add a dot'. Along these lines I also suggest we be a bit more clear and say e.g. 'content' contains the following sections: instead of This layout supports the following sections:?
Thanks!
Comment #26
duellj commentedWas this what you had in mind Cottser? I also changed the pluralization for the one column templates
Comment #27
star-szrLooks good to me, thanks @duellj!
Comment #28
alexpott+1. Ready for #1987510: [meta] Convert all core *.tpl.php templates to Twig as singular patch
Comment #28.0
alexpottUpdated issue summary.
Comment #28.1
ianthomas_ukAdd commit message
Comment #29
alexpottCommitted 43934a3 and pushed to 8.x. Thanks!
Comment #30.0
(not verified) commentedGot comment number wrong