The UI text on admin/structure/types/manage/listing/fields/field_subheading/field-settings is going to really overwhelm the average user so I want to tidy this up.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lisarex’s picture

Issue tags: +Usability, +ui-text, +D7UX

added tags

lisarex’s picture

Component: field_ui.module » node.module
yched’s picture

Component: node.module » field_ui.module

That one is actually for field_ui, Lisa ;-)

yched’s picture

And I think this is in fact a duplicate of #563998: Field UI: no way to set the translatable property.

[edit: hmm, maybe I was too quick, it depends on exactly which UI text you want to improve. If that's the one about translatable field, then #563998: Field UI: no way to set the translatable property is the issue]

lisarex’s picture

Title: Improve UI text on Field Settings page » Improve UI text that describes what is stored in the field
Assigned: lisarex » Unassigned
Status: Active » Needs review
FileSize
622 bytes
6.49 KB

Thanks yched.

I updated the title. I will only tackle the text that appears at the top of the page, e.g. 'Boolean: This field stores simple on/off or yes/no options.' and my personal favorite 'Text: This field stores varchar text in the database.' ;)

This will likely need to be several patches but I'll just start with this one!

After screenshot attached, before screenshot is in the main issue.

lisarex’s picture

Title: Improve UI text that describes what is stored in the field » Remove UI description that says what is stored in the field
FileSize
1.21 KB
10.02 KB

OK, following some discussion in IRC, Bojhan & I think these descriptions are not useful where they currently appear, *after* someone has created a field. If someone is unclear about the type of field they are creating, they should check in Documentation, since there is no good place to describe Boolean, Float, the 3 list types, etc in this interface.

This patch removes the 'description' from Text, Long text and Long text and summary (currently visible at admin/structure/types/manage/article/fields/body/ and admin/structure/types/manage/article/fields/body/field-settings)

Note that the field label and colon are still present and serve as a reminder of what type of field it is... I think they could do w/ a bit more styling though (position it evenly vertically within whitespace would be good!)

Now we find out if the descriptions are used elsewhere in core....

yched’s picture

reporting/developping what I said on IRC:

+1 for removing this. The place where this info currently shows up makes no sense. You should see those help texts *before* you create the field, they're here to help you pick a field type...

Problem is, we didn't really find a good place to display it :-/. It's information you need to see when picking a field type. But the field type picker being a select, there's no obvious place for this info.
Possibly a JS-updated string "somewhere" on the 'Manage Fields' screen when you select a field type. Browers don't react on 'hover' on select options.
Or maybe a 'more informations on field types' link opening a popup. This would stay in line with #87994: Quit clobbering people's work when they click the filter tips link / #609094: Popups for the "More Help" links if they get in.

This being said, big -1 to removing the 'description' strings in hook_field_info() themselves. We want to keep those for now (and possibly adjust them when we know where they'll end up). We just want to *not* display them at the top of field edit forms. This happens in field_ui.admin.inc, field_ui_field_edit_form() and field_ui_field_settings_form().

yched’s picture

Status: Needs review » Needs work
Bojhan’s picture

@yched Do you have a patch to not display them? I agree we might not have to actually remove the text, but more guidance for us (who are not awsome php programmers) to achieve this - might be helpful.

yched’s picture

Status: Needs work » Needs review
FileSize
2.47 KB

Here's a patch.

Status: Needs review » Needs work

The last submitted patch failed testing.

sun’s picture

+++ modules/field_ui/field_ui.admin.inc	4 Nov 2009 20:12:59 -0000
@@ -812,20 +812,14 @@
+  drupal_set_title(check_plain($instance['label']));

drupal_set_title() does check_plain() by default now.

This review is powered by Dreditor.

Bojhan’s picture

Status: Needs work » Needs review
FileSize
2.5 KB

Fixed tha_suns comment, lets hope that makes a greeny test

Status: Needs review » Needs work

The last submitted patch failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
3.61 KB

Need to fix the test accordingly.

sun’s picture

Status: Needs review » Reviewed & tested by the community
Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -Usability, -ui-text, -D7UX

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