Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2008 at 04:08 UTC
Updated:
8 Feb 2008 at 21:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
jody lynnsorry, that code was supposed to read ''$terms'', but is getting altered
Comment #2
jody lynnlol. Take 3, this time with code tags:
<span class="terms"><?php print $terms ?></span>Also noticed an oversight in my previous patchComment #3
dvessel commentedNice catch. :)
Comment #4
gábor hojtsy.terms sounds like a pretty too broad selector to add now. What about making it more specific, so we are not breaking stuff elsewhere?
Comment #5
jody lynnI disagree Gabor. The .terms selector was already the one being used. The only way this change will affect people will be if their themes were using a span.terms selector, since if they were just using .terms it will have the same behavior now. Changing it to something else will do more harm than good since existing stylesheets would need to be changed.
Comment #6
gábor hojtsyWell, I cannot see where was the .term selector used except in Garland:
So if someone has a theme which has a class="terms" outside of the node terms list (eg. in a sidebar or whatever), it is affected by this change, since you are introducing the first selector on this in a core module. All stuff with class="terms" will be display:inline, while before this patch, nothing applied to class="terms" if you were not using Garland.
Comment #7
jody lynnOk, so how about if it becomes something like
<div class="terms terms-inline">and then.terms-inline {display: inline; }so that .terms still applies as it used to.Comment #8
dvessel commentedUsing a more specific selector does make sense but that then depends on the theme. The markup in the default node.tpl.php isn't even used by default but do we use a selector specific to that anyway? I'm not sure. Would 'div.terms' be specific enough?
edit: Lynn, that could work too.
Comment #9
gábor hojtsyWell, the code in question is right in node.tpl.php anyway, so it is dependent on a theme as well. .terms-inline could also work.
Comment #10
jody lynnHere's a patch with the .terms-inline selector.
Comment #11
dvessel commentedTested on a CSS based theme.
Comment #12
gábor hojtsyThanks, committed.
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.