convert ./core/themes/bartik/templates/comment.tpl.php to a twig file
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 1749482-bartik-twig-comment.patch | 13.12 KB | tayzlor |
| #9 | commenttwig.patch | 9.69 KB | sonictruth |
| #2 | d8tts-remove-twig-from-bartik-0.patch | 21.02 KB | steveoliver |
Comments
Comment #1
pixelmord commentedThere is a first version of a twig template in the sprint sandbox in the stark theme. It was taken from chx sandbox bartik theme.
We need to improve it, since it's still using render functions
Comment #2
steveoliver commentedWith these .twig files in Bartik now, it's messing up development/testing... let's remove them until Stark is done. Patch attached.
Comment #3
fabianx commentedPlease commit the patch.
Comment #4
psynaptic commentedCommitted to front-end, thanks Steve.
http://drupalcode.org/sandbox/pixelmord/1750250.git/commit/8d68c92455844...
Comment #5
steveoliver commentedPostponed?
Comment #6
fabianx commentedFixed
Comment #7
fabianx commentedright, that is rather postponed for now ...
Comment #8
c4rl commentedThis is probably okay to get started, changing status to active.
Comment #9
sonictruth commentedHere's a patch to remove comment.html.php and replacing with comment.html.twig
I haven't touched comment-wrapper yet.
Comment #10
tayzlor commentedHeres a patch that includes comment + comment wrapper templates for Bartik. Fairly new to twig so hope i'm going in the right direction...
Comment #11
tayzlor commentedComment #12
sonictruth commentedUmm...is there a reason you posted this patch when patches for both comment and comment wrapper already existed? Was there a problem with them? Comment wrapper issue is here: http://drupal.org/node/1843578
Comment #13
fabianx commented#12: I think it was a duplicate, but I don't think its a huge problem.
We'll just compare both patches and commit a merge of them ;-).
Comment #14
jenlamptonI think we should hold off on all the templates for Bartik and Seven until we decide the core templates are done (Reworked to use theme component library). If we create all the "overrides" before we decide what we're overriding, we may end up just creating more work for ourselves.
(We may change our mind about this at some point and decide to edit all 3 versions with each change, but I think it's too early to do that now)
Comment #15
thedavidmeister commentedThe bartik tpl.php files cause the testbots to fail for the comment module as the new preprocess functions are incompatible with them - see the failed tests in comment #4 of #1898054: comment.module - Convert PHPTemplate templates to Twig.
Since the converted tpl.php files from Bartik would be identical to the core template files and there is nothing being "overridden" per-se by bartik I removed the Bartik templates altogether in my patch there.