When you click the gear next to Row style to select Inline fields for an HTML List style, the displayed fields don't show their relationships. For example, this is what I see:

  • Node: Title
  • Node: Title
  • User: Name
  • Node: Title

I have to cross-reference with the list of fields above to figure out which is which. Here's what's in my Fields list:

  • (Status) Node: Title
  • Node: Title
  • (Owner) User: Name
  • (Project) Node: Title

Comments

aren cambre’s picture

Title: Inline fields list does not show relationships » Inline fields list does not show relationships or field label

It also doesn't show the field label, which can also help distinguish fields.

dagmar’s picture

Status: Active » Needs review
StatusFileSize
new1.59 KB

When you click the gear next to Row style to select Inline fields for an HTML List style, the displayed fields don't show their relationships. For example, this is what I see:

Nice catch.

It also doesn't show the field label, which can also help distinguish fields.

Mmm. I cannot replicate this. I have changed a label for a field and works fine.

Here is a patch to display relationships in the grouping select box.

aren cambre’s picture

StatusFileSize
new98.86 KB

See the attached example to substantiate #1.

dagmar’s picture

StatusFileSize
new2.98 KB

Oh, I was looking in for in the wrong place. Thanks.

Here is the new patch.

dawehner’s picture

Shouldn't this be used also in table style?

dagmar’s picture

Status: Needs review » Needs work

Yes, lets make this more general. Maybe a new function called get_field_labels, or something like this.

dagmar’s picture

Version: 6.x-2.8 » 6.x-3.x-dev
Status: Needs work » Needs review
StatusFileSize
new4.44 KB

Here is it.

merlinofchaos’s picture

1) There are spelling errors in the comments for get_field_labels()
2) Can someone test this for me? This one should be easy to test and RTBC after fixing the typos.

dawehner’s picture

2) i tested it, added 1 relationship and added some fields with this relationship:

 (revision user1) Last login
 (revision user1) Name

So this worked fine.

dawehner’s picture

StatusFileSize
new3.58 KB

Here is an updated patch

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to all branches.

Status: Fixed » Closed (fixed)
Issue tags: -Usability

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