Users repeatedly are unable to figure out how to add fields to content types and we decided part of the problem is that the fields information is buried too deeply in the menu. The suggestion is to create a new top level menu item 'Fields' at the same level as 'Content Types' and 'Content'. It would not replace the fields information now there (the Manage Fields screen would stay where it is) but would be another way to get to it. The list of fields now showing at admin/content/type/fields would move to this new location and we would add some explanation of how fields work and a place to add new fields from this spot.
Comment | File | Size | Author |
---|---|---|---|
#26 | link-right-227435-26.patch | 2.04 KB | pwolanin |
#18 | Content-types-after-a.png | 21.54 KB | pwolanin |
#18 | Content-types-before-a.png | 22.23 KB | pwolanin |
#19 | admin-links-after-a.png | 18.82 KB | pwolanin |
#19 | admin-links-before-a.png | 19.71 KB | pwolanin |
Comments
Comment #1
catchI personally would still like a workflow where I can set up a field and attach it to multiple content types at the same time (say an imagefield to be used on blog, news and foo types). Would that work for this?
Comment #2
pwolanin CreditAttribution: pwolanin commentedHow about adding more links to the top-level node-type page at admin/content/types? E.g. 2 new links: "Add field" and "Manage fields" - so that there is an immediate 1-click to this for each content type?
Patch attached...
Comment #3
pwolanin CreditAttribution: pwolanin commentednote - you obviously have to force a menu rebuild (e.g. visit the Modules page) for this patch to take effect.
Comment #4
catchThis should help with the usability issue, and it'll generally save clicks as well. Nice one.
Comment #5
yched CreditAttribution: yched commentedAgreed this is a great usability enhancement, and a real time saver (for those who don't have admin_menu :-)
I wonder whether the order of the links is ok, though. The patch displays :
add field / manage fields / edit / delete
which makes it unclear that 'edit' and 'delete' act on the type.
What about :
(Don't bother to reroll, I can adapt the patch myself if we agree on this)
Comment #6
pwolanin CreditAttribution: pwolanin commentedWell, I think of the fields as part of the type - so that's why I didn't make that distinction. However, I don't care much either way.
Attached alter the order of the columns in the table per discussion in IRC w/ catch, plus adds a link below the table.
Comment #7
pwolanin CreditAttribution: pwolanin commentedadded 'description' class to the descriptions
Comment #8
pwolanin CreditAttribution: pwolanin commentedAnd while we're at it,, catch suggests moving the link on the admin screen to where it will be in D7. (note, you can already do this manually with menu module, this jsut makes it happen by default).
Comment #9
yched CreditAttribution: yched commentedWorks for me - committed (I only renamed the callback to be more inline with other function names in content.admin.inc).
Thanks !
Comment #10
pwolanin CreditAttribution: pwolanin commentedgreat! Though this little piece of the last patch didn't make it (if you want it).
Comment #11
pwolanin CreditAttribution: pwolanin commentedmaybe better- put the code in hook_enable, rather than having it run all the time.
Comment #12
yched CreditAttribution: yched commentedYeah, #8 and #9 obviously crossposted :-), I committed #7.
Do we really want to do this ? Won't this confuse people (and people trying to help them : "Go to Administer / Content Management / Content Types, unless you're using CCK, in which case you need to make that Administer / Site Building / Content Types") ?
Comment #13
catchTested this and it works, less intrusive than changing all the content type paths as well.
Comment #14
pwolanin CreditAttribution: pwolanin commented@yched - none of the paths change - so you can always direct someone using the path (though the breadcrumb changes and actually works better this way). So, I can see both ways - might cause occasional confusion, but might also prevent confusion.
Comment #15
catchI always say admin/content/types anyway which'll work both ways. Hopefully we'll have to help people less if it's in a more intuitive place ;)
Comment #16
catchComment #17
catchprobably needs more thought.
Comment #18
pwolanin CreditAttribution: pwolanin commentedFor those who might be interested in tweaking the appearace further or just comparing - here are before and after screenshots for the patch committed in #9
In both cases CCK is enabled, as shown by the "Fields" tab at the top. Note in the additional link below the table too.
Comment #19
pwolanin CreditAttribution: pwolanin commentedIs it worth implementing a hook_help entry in CCK for this page to add some more text? An/or adding more text above the table?
In terms of the question about moving the link, see attached screen shots.
Comment #20
Dries CreditAttribution: Dries commentedI think it's an improvement but I wouldn't put the description on the right. I'd put the operations on the far right.
Comment #21
pwolanin CreditAttribution: pwolanin commented@Dries - I prefer them next to the type name, so that it's easy to match the type with its links. But I'll solicit some feedback. Attached are comparison screenshots.
Currently the links are in the center, right next to the type name:
An alternative is to put them on the right after the description.
Comments?
Comment #22
moshe weitzman CreditAttribution: moshe weitzman commentedFWIW, I prefer the links on the right as well.
Comment #23
boombatower CreditAttribution: boombatower commentedI like them on the right as it gives the reader time to digest what the item is before performing an operation.
Comment #24
Crell CreditAttribution: Crell commentedPutting them on the far right would be more consistent with where "op" links appear elsewhere in Drupal. +1 for that. And dear god thank you for this issue! :-)
Do we want delete on this page? I'm inclined to move that to a button on the edit page (a la nodes) to make it harder to hit by accident.
Comment #25
eaton CreditAttribution: eaton commentedI lean towards operations on the far right as well. That's as close to a standard as we have in Drupal for "links that affect modifications of an item in a table." Add/Edit icons would be even cooler, but I imagine that would be another world of debate ;-)
Comment #26
pwolanin CreditAttribution: pwolanin commentedok, well here's the patch for moving them back right. As above - I prefer the way it is now, but it's not a major thing.
Still unanswered (or answered in the negative?) is the question about whether the admin/content/types link is better off moved.
Comment #27
yched CreditAttribution: yched commentedCommitted #26.
As pwolanin stated, we're still pending feedback on whether CCK D6 should move this page to Administer >> Site Building like in core D7, or keep it under Administer >> Content Management where core D6 currently puts it in.
(patch to review is #11, screenshots in #19)
Comment #28
liveoutloud2day CreditAttribution: liveoutloud2day commented#19 - I think managing content types is site design/building not managing the actual content on the site, so I vote for the content types being part of the site building menu. I certainly don't touch content types very often after a site goes live, but all the time during the site build.
liveoutloud2day
Comment #29
yched CreditAttribution: yched commentedOK, to be more specific : the question is not whether the change is sensible - that is already agreed, since that change went in core D7.
The question is : should CCK D6 move that menu item to a different place than core D6 puts it ?
See #12 for my personal concerns.
Comment #30
KarenS CreditAttribution: KarenS commentedI agree with yched, moving a top level core link is likely to cause confusion, even if it makes sense. The other changes in this issue move CCK links to better places, which is fine and useful. I'd leave the top level link where it is and let core fix it in D7.
Comment #31
Senpai CreditAttribution: Senpai commentedRe: #26 and the Operation Links position, I am 100% in favor of the action links staying right next to the title of the content type. Move the descriptions of the content type to the far right where they belong. Yes, I know it breaks tradition, but here's why I think it's better:
When the reader comes to this page, it's a pretty safe assumption that they will either be trying to create a new content type or they will be returning to edit an existing content type. What are the new users looking for? An Add New Content Type button. But what if they're not coming to this page for the very first time? They will be looking for an actionable button that let's them edit or delete the content type they came here to change. They won't need to read the description on the content type right now, unless they've forgotten what it does. :-)
So, we have first time users coming to this page to create a content type of their own. They don't need any of the buttons we're talking about in this patch, do they? Chances are good that they only need the Add Content Type tab. Thus, the operation buttons' placement in no way concerns them.
Then, we have returning users. Those people who have to edit a content type, delete a content type, or even create a new content type. I'd venture to say that nobody who comes to this page for a second, third or two hundredth time is seeking a description of the Story content type as their most prominent feature. They need the names of the content types, and they need to be able to do something with them. Thus, the placement of these Operation links is completely for the benefit of the repeat users. the admins. The ones taking care of their sites. The devs who are building sites. The teachers who are following a book's instructions on how to set up a blog for their students. You get the picture.
If I were to place four buttons at the end of your dinner table, and put labels for those buttons at the other end of your dinner table, how fast do you think you could find the right button if I gave you two seconds to run into the dining room, hit the button you needed, and come right back to where you were. Could you do it? Now imagine that I've sextupled the amount of buttons at the end of the table by adding five more content types to the site. Are you guys seeing the problem I'm seeing?
User friendliness is about placing things under the user's mouse before they've even had that thought of "Here is what I needed to click on". Let's go with the placement of patch #9. Please?
Comment #32
Thomas_Zahreddin CreditAttribution: Thomas_Zahreddin commentedwhat's the bigger picture?
If the mental model is consistent throug the whole system, then it is easier for users to find what they search for.
Comment #33
KarenS CreditAttribution: KarenS commentedWe're not really debating where to put the action links any more. That patch is already committed and the decision was to be consistent with Drupal core, for better or worse. If you don't like where Drupal core puts these things, you can open an issue for core for D7.
The open question is whether to try to move the Content Types link from the Content Management section to the Site Building section.
Using the same logic, that it's not really the job of CCK in D6 to 'fix' things we don't like in Drupal core, I think we're leaning toward leaving it where it is. At least I am, and I think yched feels the same.
Comment #34
KarenS CreditAttribution: KarenS commentedActually I just thought of a really good reason *not* to move that link. How many Drupal 6 books are either already published or about to be published? And how many of them have either a screen shot of the admin page or instructions about how to edit a content type that assumes you get there from the 'Content Management' section? If we move that link, we will 'break' all those books.
I'm so sure we don't want to do that that I'm marking this fixed (meaning the original issue was fixed and the second issue was resolved.)
Comment #35
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.