Closed (cannot reproduce)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forum.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Sep 2011 at 01:35 UTC
Updated:
3 Oct 2014 at 09:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
megan_m commentedAnd here is a patch.
I haven't put much CSS in the core module, but I am working on some modifications to Bartik which will come in a separate patch.
Comment #3
larowlanI'm not a huge fan of adding a float in core css, this kind of stuff belongs in the css cleanup that's actively happening - splitting core css into separate files to indicate their contents (eg admin, theme etc)
This will be a gotcha for themes lower down the line, I don't like the idea of it in core.
This isn't needed, the theme_hook_suggestions in template_preprocess_node cover it
This already happens in node module
This looks good but does it belong here or in template_preprocess_comment (so this flexibility is available for those without the forum module).
Powered by Dreditor.
Comment #4
megan_m commentedThanks for your feedback! Unfortunately the patch did not include the node--forum.tpl.php and comment--forum.tpl.php that should have been attached.
The intent of this patch is to provide default templates for forum nodes and comments. It is true that themes can currently create these files. However, default versions are not provided by forum.module. This is a start at addressing the issue of Drupal forums not looking like forums.
I'm sure there needs to be some discussion about what the right CSS is to include with this. The overflow:hidden (now changed to overflow: auto) has the effect of keeping the left edge of the content div aligned, with the user attribution aligned to the left. Use Firebug to turn it off and you'll see what I mean :) (why this accomplishes this effect is a bit of a mystery!). Other suggestions for achieving this effect would be welcome.
One thing I'm unsure about is including all the commented sections with the variables available to node--forum.tpl.php and comment--forum.tpl.php. It's useful to have them there when you're overriding the file, but if anything changes in the main files there it could be hard to keep it updated.
Comment #5
megan_m commentedComment #6
Everett Zufelt commentedI would think that we can just provide a reference in the comment to node.tpl.php for inherited theme variables.
We need to use HTML5 sectioning elements, try following the discussion at #1077602: Convert node.tpl.php to HTML5
Comment #7
megan_m commentedHi Everett,
Thanks for your feedback! All of those problems you mentioned are also in the current version of node.tpl.php. So, I wouldn't want to change them in my file but not in the standard node template.
Thanks also for pointing out the issue about converting node.tpl.php to HTML5. It sounds like there is some ongoing discussion on that. Could we get this patch submitted first, to align with the current node.tpl.php, and then update it as well once the new node.tpl.php is finalized? I would be happy to do that.
Comment #8
Everett Zufelt commentedI don't really see a good reason to roll this twice. D8 release is months/years away, we have time. Tagging
Comment #9
jacineIn an effort to get a better picture of issues remaining in the HTML5 Initiative, we are removing the "html5" tag from issues that are not directly HTML5-related. While this patch does need to be updated to use HTML5 version of the node template, the issue itself is not really about HTML5, it's a request for the Forum module to implement it's own node and comment templates. I'm changing the title to better reflect that, and tagging "theme system cleanup" so those working on that initiative can consider this.
Note: Any issues assigned to the "Markup, CSS and JavaScript" components will still be broadcast on the HTML5 Twitter feed so that interested parties are aware and can participate.
Comment #10
shanethehat commentedThis would be a good thing to look at when the Twig conversions for Forum (#1898418: forum.module - Convert PHPTemplate templates to Twig) and Comment (#1898054: comment.module - Convert PHPTemplate templates to Twig) are committed.
Comment #11
andypostAlso related issue #731724: Convert comment settings into a field to make them work with CMI and non-node entities and #1951268: Convert /forum and /forum/% to new router, remove forum_forum_load(), forum_get_topics(), create Forum service
Comment #12
jenlamptonFor the forum module's version of the comment-wrapper template in particular, I was suggesting the code look like this:
The otiginal comment-wrapper template will look like this:
This is a perfect use case for Twig template inheritance.
See that issue: #1783190: Create a comment-wrapper template in forum module that inherits from the comment-wrapper template in comment module.
Comment #13
c4rl commentedOne concern I have with how Twig inheritance is proposed to work is that the original template must decide what the child template is going to potentially want to change. That is, if there's not a codeblock that is useful to you in the original, then you have to override the whole thing anyway.
So, I'm not sure this API really provides us with anything new. Traditional overriding of the template registry is something we're familiar with and provides more flexibility.
Comment #14
lauriiiThis is fixed by something else so closing as irrelevant