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.
This is simple and straightforward.
Comment | File | Size | Author |
---|---|---|---|
#15 | bypass_node_add.patch | 724 bytes | catch |
#9 | node_add_single.patch | 473 bytes | chx |
#1 | add_one_content_type.patch | 707 bytes | chx |
Comments
Comment #1
chx CreditAttribution: chx commentedand the patch
Comment #2
chx CreditAttribution: chx commentedJef Raskin, The Human Interface, pp 183:
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedworks as advertised. good idea. why it took so many years to do this i do not know.
Comment #4
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedI don't think it is a good idea to add code for such fringe use cases.
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedusability is all about paying attention to these cases even at the expense of some extra code. where to draw this line is often a matter of taste, so i won't debate it much. fwiw, i think this is a reasonable use of code. the fewer people that see node/add, the better.
Comment #6
Zen CreditAttribution: Zen commentedFirstly, I don't think this actually improves usability as such. If anything, it decreases it: if a site only allow its users to create book pages, a newbie clicking on "create content" wil be taken to a page that says "Submit book page". But he has no idea what a "book page" is as he never got a chance to read the enlightening spiel on the "node/add" page:
A book is a collaborative writing effort: users can collaborate writing the pages of the book, positioning the pages in the right order, and reviewing or modifying pages previously written. So when you have some information to share or when you read a page of the book and you didn't like it, or if you think a certain page could have been written better, you can do something about it.
Secondly, how often does a site have just one node-type?
My 10p,
-K
Comment #7
moshe weitzman CreditAttribution: moshe weitzman commentedWe already have an admin defined help message at the top of node/add/x which can be used to describe book page and how to make one. This is superior to the description on node/add since thats just some drupal engineer's vision of the module and not specific to the site where it is deployed.
I think the use case where users have only 1 content type to post is very common. I have sites where users only post stories or blogs and all interesting stuff happens with taxonomy associations.
Comment #8
bdragon CreditAttribution: bdragon commentedResetting statuses
Comment #9
chx CreditAttribution: chx commentedComment #10
catchThis still applies, and is a fine, fine idea. Tried it out, works great, no test regressions.
Comment #11
catchForgot to set RTBC.
Comment #12
Dries CreditAttribution: Dries commentedWe already have an admin defined help message at the top of node/add/x which can be used to describe book page and how to make one. This is superior to the description on node/add since thats just some drupal engineer's vision of the module and not specific to the site where it is deployed.
Fair enough but it introduces a number of extra configuration steps. Isn't that something you're concerned about?
Comment #13
catchIf there's only one kind of content on a site, then I don't think a description of it makes a lot of difference to be honest - you're either going to post it or not, you don't have to make a decision about which one to choose (which is pretty much what those descriptions are for). So in the rare case that those descriptions are very important to sites with individual content types, there's a fair chance they'll have extra help on the node/add/$type page anyway.
Comment #14
Dries CreditAttribution: Dries commentedOK, I buy into this. However, I'd like to see us add a tiny bit of code comments to the patch. Should be an easy re-roll.
Comment #15
catchRe-rolled with a code comment.
Comment #16
swentel CreditAttribution: swentel commentedLast patch still applies, tested and good to go for me.
Comment #17
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #18
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.