Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I selected to show the Tags label for the tags vocabulary (the default core one) to Inline, but on the node view it still come out above the first tag if the number of tags takes up more than one row.
If the terms take up only one row the label is inline.
In both cases the label is not bold as for example the body label is.
Comment | File | Size | Author |
---|---|---|---|
#54 | 819996_tags_rdfa_bartik.patch | 2.26 KB | scor |
#49 | drupal-bartik-819996-49.patch | 3.89 KB | tim.plunkett |
#48 | 819996-bartik-taxonomy-term-displays-9.patch | 3.82 KB | Jeff Burnz |
#46 | 819996-bartik-taxonomy-term-displays-8.patch | 4.24 KB | Jeff Burnz |
#42 | 819996-bartik-taxonomy-term-displays-7.patch | 3.16 KB | amateescu |
Comments
Comment #1
Hoople CreditAttribution: Hoople commentedRemoving float:left from the class "field-items" makes all items appear inline with the Label. See the attached patch.
Comment #2
mastoll CreditAttribution: mastoll commentedComment #3
tlattimore CreditAttribution: tlattimore commentedHoople, your patch is from a git repo, could submit one for Bartik checked out of CVS HEAD.
Comment #4
bleen CreditAttribution: bleen commentedI rerolled the patch ... and it seems to work well:
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedThis is not what I am seeing in Firefox3 (Win7) and IE8, IE7 is very broken:
Comment #6
jensimmons CreditAttribution: jensimmons commentedI believe this was fixed in the push to get Bartik ready for core.
Comment #8
Jeff Burnz CreditAttribution: Jeff Burnz commentedNope, this was not fixed - fresh screen-shot of the issue in IE7 in Alpaha6 today.
Comment #9
Jeff Burnz CreditAttribution: Jeff Burnz commentedMoving to right queue.
Comment #10
bleen CreditAttribution: bleen commentedNobody likes IE7 ... here is the screenshot from #8:
Comment #11
bleen CreditAttribution: bleen commentedThis patch fixes the IE7 issue...
Comment #12
Jeff Burnz CreditAttribution: Jeff Burnz commentedWith a definite time crunch coming I think we just need to move ahead and fix all the issues with terms - there at least one other issue not being reported - the use of the field name class rather than sticking to the field-type class to deliver styles to all taxonomy term fields.
Additionally there are a couple of other issues floating around that deal with the display of taxonomy terms:
#876940: field-label-above has field labels in-line and floating left
#845722: Term reference fields have no linebreak
#847632: Body floats onto term field when placed below them.
#833038: Make taxonomy styling apply everywhere
All these issues essentially revolve around the positioning of terms - its generic issue with flow on ramifications. Lets fix it once.
Attaching a starting patch that:
1 - removes the use of field name class, only uses the field type class
2 - does not float the label - we shouldn't be doing this because core can do this with display settings
3 - keeps the terms inline, even if the label is above or hidden
Keeping as normal but really this could be major, since it a) breaks the display in several ways and b) overrides a core display setting so users are left with a wtf when they try to move the label above.
The patch attempts to solve (b) but needs further work and testing for (a).
Comment #13
Jeff Burnz CreditAttribution: Jeff Burnz commentedOK, here another patch that should solve 12-a and 12-b. Adds overflow hidden to the field wrapper.
Comment #14
Jeff Burnz CreditAttribution: Jeff Burnz commented#13: bartik-fix-terms-display-819996_v2.patch queued for re-testing.
Comment #15
tim.plunkettUgh, reroll. From style.css version 1.5 to 1.22, there were quite a few changes made. Some things even seem to have been changed already (e.g.,
div.field-name-taxonomy-tag
todiv.field-type-taxonomy-term-reference
).I think I got everything, forgive me if I didn't.
Comment #16
Jeff Burnz CreditAttribution: Jeff Burnz commented#15: drupal-bartik-fix_terms_display-819996-15.patch queued for re-testing.
Comment #17
GiorgosKpatch fixes problem with IE6 and IE7
RTBC ?
Comment #18
tim.plunkettJeff, since you were the grand architect of #660614: Remove #block-system-main dependency, fix font sizes, remove crufty CSS, and that's mainly what forced the reroll, I'd love for you to ensure that I got the intention of this patch correct. Visually and code-wise I'd say it's RTBC.
Comment #19
Jeff Burnz CreditAttribution: Jeff Burnz commentedThe main thing is to test with every possible display setting, for both Article content type and Forum content type (the taxonomy fields are in different positions) and even adding some new taxonomy fields and placing them in various positions in relation to other field types. D7 is so different with this whole fields in core we have to account for many more permutations than ye olde D6 $terms.
Any entity that can have a taxonomy term field needs testing - so its quite a lot of testing we need done. I will post some screenshots shortly of what its meant to look like for each display setting.
Comment #20
Jeff Burnz CreditAttribution: Jeff Burnz commentedOK, it pretty late here so I am just posting a basic screenshot showing the default display settings for the label.
One of the big thing to look out for is how other fields react around them, such as an image field with the label showing and so on - is the spacing between fields correct and look good (is there enough white space).
Refer to the screenshot in #10 for the big problem with IE7.
All these were taken in Firefox 3.6.x on Windows 7, with the patch in #15 applied:
Comment #21
GiorgosKinline label does not happen when "terms width" + "label width" > ".field-label-inline" width (case of too many terms)
see screenshots
Comment #22
GiorgosKsome RTL tests more
Comment #23
Jeff Burnz CreditAttribution: Jeff Burnz commented@21 - not following what you refer to or mean by inline label does not happen when "terms width" + "label width" > ".field-label-inline" width (case of too many terms). Is your report/screenshots with the patch or without the patch?
I found strange issue with Firefox 3.6 in RTL when two taxonomy term fields - the top one is display label Above, the bottom on display label Inline (In IE7 this is playing OK).
Comment #24
Jeff Burnz CreditAttribution: Jeff Burnz commentedRants... but oh so valid...
#784792: Field Type Template Suggestions
http://drupal.org/node/784792#comment-3550660
Comment #25
GiorgosK@jeff
when setting label "inline" and have too many terms
it looks as if label was set to "above"
its easier to understand if you see
http://drupal.org/files/issues/819996-bartik-term-displays-d7_2.jpg
second picture "Firefox Inline label"
Comment #26
Jeff Burnz CreditAttribution: Jeff Burnz commented@25, no need to reiterate your posts, we can see them. You need to say what operating system you are using and if they are before or after screenshots.
Comment #27
GiorgosK@26 I was just answering your comment from #23 !!!!
windows xp - after screenshots
Comment #28
Jeff Burnz CreditAttribution: Jeff Burnz commentedLooks like #784792: Field Type Template Suggestions is gaining momentum and could get in - we should consider this blocked and wait for an outcome of that issue - because if it gets in we'll need to consider where to add the new function or template for taxonomy reference fields - whether this will happen in the theme or somewhere else. That said, if it does get in we can pretty much assume traditional list markup will replace the DIV's and can start back on the CSS at least.
Comment #29
Jeff Burnz CreditAttribution: Jeff Burnz commentedHooray #784792: Field Type Template Suggestions just landed!
So, we need to decided if we're going to add a template to Bartik to override term reference fields and make them lists again.
Comment #30
markabur CreditAttribution: markabur commentedSounds like a great opportunity to use that new feature (and demonstrate how it works).
Comment #31
sun.core CreditAttribution: sun.core commentedDemoting back to normal, since no reason was stated for why this bug is major. Overall, this issue sounds and looks annoying, but it's limited to Bartik and affects a few users only.
Comment #32
amateescu CreditAttribution: amateescu commentedHere's a patch with my take on this issue.
Attached are screenshots for FF, IE 6/7/8. I also checked Chrome/Opera and they're fine.
P.S. If this gets in, http://drupal.org/node/759734#comment-3761914 is no longer needed :)
Comment #33
amateescu CreditAttribution: amateescu commentedOops, forgot to change the header for the new template file.
Comment #34
amateescu CreditAttribution: amateescu commentedSorry, git is playing tricks on me.
Comment #35
tim.plunkettNo need for the /* RTL */
Same thing here.
Functionally this looks good to me.
Powered by Dreditor.
Comment #36
amateescu CreditAttribution: amateescu commentedYou're right, thanks.
Comment #37
Jeff Burnz CreditAttribution: Jeff Burnz commentedThis will result in clearfix class being added twice when the field label display is inline.
Do we really need the template, it would be more performant if we used a function instead.
Powered by Dreditor.
Comment #38
tim.plunkettComment #39
amateescu CreditAttribution: amateescu commentedNew patch with the approach suggested in #37.
I tested this on FF, Chrome, IE 6/7/8 (LTR & RTL) and they look just like the screenshots in #32.
Comment #40
Jeff Burnz CreditAttribution: Jeff Burnz commentedOk, I have reviewed the patch in #39 in some depth and to be frank I am not entirely convinced with the approach taken in the CSS and there is an issue with the use of
$vars
in the function, should be$variables
to be consistent with other core functions.I think we can utilize cores "inline" class the way it was intended it only add it when the label display is inline and leverage cores field label floats also - this cuts down the CSS a lot and there's no need to rely on chained selectors. This is how the inline class was meant to be used - for when we want a block level element to be inline, its really a perfect fit, but do not use it when we want the block level element to be block level.
I also think the margin should be the same as for paragraphs, so it has margin bottom 1.2em instead of margin top 1em - Jen might like to chime in here.
Heres a patch to show what I am thinking. I'm not adding any screenshots because it looks the same as #39 basically, just different approach in code.
Comment #41
tim.plunkettBoth of these patches are on the right track, I think Jeff's is a little cleaner.
#40 is RTBC for me, hopefully Jen can give a yay or nay on this today.
Comment #42
amateescu CreditAttribution: amateescu commentedWell, then let's clean it a little more :)
I don't think that we should set $element in the theme override function if we only use it once, and also changed the syntax a bit to make it shorter. I saw in Seven's template.php that it's ok to do it this way (seven_admin_block_content).
Also, there's a problem with font sizes in list mode (frontpage) vs. node page in Chome and IE 6,7,8. Attached is a screenshot from Chrome. This problem is also present in my patch so let's see what Jen has to say about this.
Comment #43
bleen CreditAttribution: bleen commentedthe screenshots from #42:
FRONT
NODE
Comment #44
bleen CreditAttribution: bleen commentedAlso seems weird that "Tags:" is inline on "node" but not "front" and "Other tags:" is inline on "front" but not "node" ... Shouldn't they all be one or the other? (I vote never inline, but I dont care that much as long as they are consistant)
Comment #45
amateescu CreditAttribution: amateescu commented@bleen18: I have different display settings for default/teaser because i wanted to test all possible situations.
Comment #46
Jeff Burnz CreditAttribution: Jeff Burnz commentedPatch in #42 is looking good, nice improvement there, I did a quick reroll setting a specific font-size for both teaser and full node view. For the teaser I locked it in at 11.5px (0.821em) and for full node at 12px (0.8em), assuming browser default of 16px.
What do you guys think, either we could make them the same font-size (same for both teaser and full view) or allow them to be different like .node .content?
Comment #47
markabur CreditAttribution: markabur commentedGood question. When I saw those screenshots I thought it was a mistake, or that one was scaled, or something.. and in fact pulled them into Photoshop to compare. But once I realized the different sizing was intentional I thought it was ok. I think in a full river of news, the smaller tags will make even more sense.
Looks like an extra file snuck into the last patch:
Comment #48
Jeff Burnz CreditAttribution: Jeff Burnz commentedOps, forgot to exclude the Eclipse project file...
Comment #49
tim.plunkettThis looks great. Great use of #784792: Field Type Template Suggestions. RTBC.
Double-space before a /* LTR */, not sure if that matters, so I rerolled.
Comment #51
tim.plunkett"Setup environment: failed to drop checkout database."
Comment #52
tim.plunkett#49: drupal-bartik-819996-49.patch queued for re-testing.
Comment #53
webchickCommitted to HEAD.
Thanks for all the awesome testing work on this, folks!!
Comment #54
scor CreditAttribution: scor commentedThe patch #49 overrides the default theme_field() but does not include the item_attributes variable, causing the RDFa markup of these taxonomy terms to have disappeared in bartik. This patch restablishes the missing $variables['item_attributes'] in bartik_field__taxonomy_term_reference().
Adding some test to rdf.module so this does not happen again.
Comment #55
tim.plunkettApplying just the test, it fails. Good catch.
Comment #56
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #58
yched CreditAttribution: yched commentedFollowup : #1106344: Taxonomy term reference field headers always should be rendered with a HTML header (invisible or not)
Feedback welcome from folks from this thread.
Comment #59
sch.nd.fr CreditAttribution: sch.nd.fr commentedI have the problem with Drupal 7.9...
If I set "hidden" or "inline" for the label of the field in the display management of the vocabulary, the label is still displayed above the content !
NB : I don't use the bartik theme, I use the Zen theme (3.1).
Comment #60
tim.plunkettPlease open an issue in the Zen issue queue: http://drupal.org/project/issues/search/zen