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.

CommentFileSizeAuthor
#54 819996_tags_rdfa_bartik.patch2.26 KBscor
#49 drupal-bartik-819996-49.patch3.89 KBtim.plunkett
#48 819996-bartik-taxonomy-term-displays-9.patch3.82 KBJeff Burnz
#46 819996-bartik-taxonomy-term-displays-8.patch4.24 KBJeff Burnz
#42 819996-bartik-taxonomy-term-displays-7.patch3.16 KBamateescu
#42 font-sizes-front.png135.07 KBamateescu
#42 font-sizes-node.png142.42 KBamateescu
#40 819996-bartik-taxonomy-term-displays-6.patch3.66 KBJeff Burnz
#39 819996-bartik-taxonomy-term-displays-5.patch3.59 KBamateescu
#36 819996-bartik-taxonomy-term-displays-4.patch5.19 KBamateescu
#34 819996-bartik-taxonomy-term-displays-3.patch5.23 KBamateescu
#33 819996-bartik-taxonomy-term-displays-2.patch5.79 KBamateescu
#32 819996-bartik-taxonomy-term-displays.patch5.21 KBamateescu
#32 ff-bartik-tags.png29.68 KBamateescu
#32 ie8-bartik-tags.png30.42 KBamateescu
#32 ie7-bartik-tags.png30.43 KBamateescu
#32 ie6-bartik-tags.png30.41 KBamateescu
#23 firefox-RTL-items-not-wrapping.png69.4 KBJeff Burnz
#23 ie7-term-displays-rtl-two-fields.png56.75 KBJeff Burnz
#22 819996-bartik-term-displays-d7_3.jpg30.01 KBGiorgosK
#21 819996-bartik-term-displays-d7.jpg57.61 KBGiorgosK
#21 819996-bartik-term-displays-d7_2.jpg67.82 KBGiorgosK
#20 bartik-term-displays.png73.36 KBJeff Burnz
#15 drupal-bartik-fix_terms_display-819996-15.patch1.97 KBtim.plunkett
#12 bartik-fix-terms-display-819996.patch2.37 KBJeff Burnz
#13 bartik-fix-terms-display-819996_v2.patch2.39 KBJeff Burnz
#11 terms.patch640 bytesbleen
#8 bartik_inline_label.png77.03 KBJeff Burnz
#5 taxonomy-reference-fields.gif5.9 KBJeff Burnz
#4 bartik.patch1.78 KBbleen
#1 819996_Label_above_Vocabulary_items.patch776 bytesHoople
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Hoople’s picture

Status: Active » Needs review
FileSize
776 bytes

Removing float:left from the class "field-items" makes all items appear inline with the Label. See the attached patch.

mastoll’s picture

tlattimore’s picture

Status: Needs review » Needs work

Hoople, your patch is from a git repo, could submit one for Bartik checked out of CVS HEAD.

bleen’s picture

Status: Needs work » Needs review
FileSize
1.78 KB

I rerolled the patch ... and it seems to work well:
d7

Jeff Burnz’s picture

Status: Needs review » Needs work
FileSize
5.9 KB

This is not what I am seeing in Firefox3 (Win7) and IE8, IE7 is very broken:

taxonomy-reference-fields.gif

jensimmons’s picture

Status: Needs work » Fixed

I believe this was fixed in the push to get Bartik ready for core.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Jeff Burnz’s picture

Status: Closed (fixed) » Active
FileSize
77.03 KB

Nope, this was not fixed - fresh screen-shot of the issue in IE7 in Alpaha6 today.

Jeff Burnz’s picture

Project: Bartik » Drupal core
Version: 7.x-1.x-dev » 7.x-dev
Component: Code » Bartik theme

Moving to right queue.

bleen’s picture

Nobody likes IE7 ... here is the screenshot from #8:

bleen’s picture

Status: Active » Needs review
FileSize
640 bytes

This patch fixes the IE7 issue...

Jeff Burnz’s picture

With 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).

Jeff Burnz’s picture

Title: Inline as Display Style still puts the label above » Fix taxonomy term displays
FileSize
2.39 KB

OK, here another patch that should solve 12-a and 12-b. Adds overflow hidden to the field wrapper.

Jeff Burnz’s picture

tim.plunkett’s picture

Ugh, 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 to div.field-type-taxonomy-term-reference).

I think I got everything, forgive me if I didn't.

Jeff Burnz’s picture

GiorgosK’s picture

patch fixes problem with IE6 and IE7
RTBC ?

tim.plunkett’s picture

Jeff, 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.

Jeff Burnz’s picture

The 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.

Jeff Burnz’s picture

FileSize
73.36 KB

OK, 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:

bartik-term-displays.png

GiorgosK’s picture

inline label does not happen when "terms width" + "label width" > ".field-label-inline" width (case of too many terms)

see screenshots

GiorgosK’s picture

some RTL tests more

Jeff Burnz’s picture

Status: Needs review » Needs work
FileSize
56.75 KB
69.4 KB

@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).

firefox-RTL-items-not-wrapping.png

ie7-term-displays-rtl-two-fields.png

Jeff Burnz’s picture

GiorgosK’s picture

@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"

Jeff Burnz’s picture

@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.

GiorgosK’s picture

@26 I was just answering your comment from #23 !!!!

windows xp - after screenshots

Jeff Burnz’s picture

Looks 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.

Jeff Burnz’s picture

Priority: Normal » Major

Hooray #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.

markabur’s picture

Sounds like a great opportunity to use that new feature (and demonstrate how it works).

sun.core’s picture

Priority: Major » Normal

Demoting 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.

amateescu’s picture

Assigned: Unassigned » amateescu
Status: Needs work » Needs review
Issue tags: +jen's hit list
FileSize
30.41 KB
30.43 KB
30.42 KB
29.68 KB
5.21 KB

Here'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 :)

amateescu’s picture

Oops, forgot to change the header for the new template file.

amateescu’s picture

Sorry, git is playing tricks on me.

tim.plunkett’s picture

Status: Needs review » Needs work
+++ themes/bartik/css/style-rtl.css
@@ -88,12 +88,18 @@ ul.tips {
+  float: right; /* RTL */
+  padding-left: 5px; /* RTL */

No need for the /* RTL */

+++ themes/bartik/css/style-rtl.css
@@ -88,12 +88,18 @@ ul.tips {
+  padding: 0 0 0 1em; /* RTL */
+  float: right; /* RTL */

Same thing here.

Functionally this looks good to me.

Powered by Dreditor.

amateescu’s picture

Status: Needs work » Needs review
FileSize
5.19 KB

You're right, thanks.

Jeff Burnz’s picture

+++ themes/bartik/templates/field--taxonomy_term_reference.tpl.php
@@ -0,0 +1,52 @@
+<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>

This 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.

tim.plunkett’s picture

Status: Needs review » Needs work
amateescu’s picture

Status: Needs work » Needs review
FileSize
3.59 KB

New 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.

Jeff Burnz’s picture

Ok, 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.

tim.plunkett’s picture

Both 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.

amateescu’s picture

Well, 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.

bleen’s picture

the screenshots from #42:

FRONT

NODE

bleen’s picture

Status: Needs review » Needs work

Also 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)

amateescu’s picture

Status: Needs work » Needs review

@bleen18: I have different display settings for default/teaser because i wanted to test all possible situations.

Jeff Burnz’s picture

Patch 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?

markabur’s picture

Status: Needs review » Needs work

Good 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:

Index: .project
Jeff Burnz’s picture

Status: Needs work » Needs review
FileSize
3.82 KB

Ops, forgot to exclude the Eclipse project file...

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
3.89 KB

This looks great. Great use of #784792: Field Type Template Suggestions. RTBC.
Double-space before a /* LTR */, not sure if that matters, so I rerolled.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, drupal-bartik-819996-49.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Reviewed & tested by the community

"Setup environment: failed to drop checkout database."

tim.plunkett’s picture

#49: drupal-bartik-819996-49.patch queued for re-testing.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD.

Thanks for all the awesome testing work on this, folks!!

scor’s picture

Status: Fixed » Needs review
FileSize
2.26 KB

The 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.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Applying just the test, it fails. Good catch.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

yched’s picture

sch.nd.fr’s picture

Version: 7.x-dev » 7.9
Component: Bartik theme » other
Status: Closed (fixed) » Needs work

I 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).

tim.plunkett’s picture

Version: 7.9 » 7.x-dev
Component: other » Bartik theme
Status: Needs work » Closed (fixed)

Please open an issue in the Zen issue queue: http://drupal.org/project/issues/search/zen