Question regarding a functionality I've been wanting, but not sure if it's possible. When a user is viewing a taxonomy page (taxonomy/term/1) it would be nice to have a link that would allow the user to "Add new content in this category". The idea would be that:
1) user is viewing a category/taxonomy page
2) user clicks "Add new content to this category" link
3) the create page (or any node type, although this is probably an important issue) form appears and the category is automatically selected in approporiate taxonomy selection menu or drop down
The interaction is sort of similar to what we have in the forums when we click the "Post new forum topic" link, but it would apply to other node types, e.g. pages or blogs. This is a very minor feature that go a long way towards making a better user experience in some instances. I know this might be problematic to implement because of the number situations that might exist, e.g. the issue of Drupal determining what content type create node form the link displays if the taxonomy term applies to multiple node types.
Anyone doing this now?
Thanks,
Michael
Comments
Similar to ebay "sell in this category"
I agree with you. This would be similar to ebay "sell in this category" link, which is very handy and makes it obvious to users how to add content. I posted elsewhere about the cryptic way drupal invites users to add content. That mysterious "create content link. Create what content? Where? I doubt new users would even know to click it. It's not very inviting.
It is an interesting problem. If you have a result of mixed type, how do you generate a "create content" in this category link? It is certainly a useful feature. It might be that drupal will just have to determine if the listing is all one type of node. Or display a type appropriate link next to each content item. Or ask the user what kind of content they would like to create.
I think this issue will become more important in web applications as they deal with media catalogs, which typically contain a number of different media types. The catalog or taxonomy contains title and description and a relation to the media, so when you search the results can contain more than one type of media. The same question might come up if you had a "create content like this" link, which I think what we are really asking for. At ebay, they maintain a catalog of a lot of different kinds of products and listings return mixed results. Of course, this could be seen as one kind of content, but if you notice, they allow you to attach attributes specific to certain types, such as medium for artwork, material for toys, etc.
Steve
ebay reference
The ebay analogy for "sell in this category" is appropriate. In Drupal, I would expect this feature only when browsing a taxonomy index page for ONE TERM. Would be impossible when displaying more than one term using that "term1,term2" method.
prepopulate
I believe that you could achieve this with the prepopulate module http://drupal.org/project/prepopulate and a little code to help the taxonomy module know to provide links that point to the correct form of url for adding a node with the taxonomy prepopulated.
--
Growing Venture Solutions
Drupal Implementation and Support in Denver, CO
--
Morris Animal Foundation
Thanks!
Thanks, greggles! I'm going to try it out.
I can't get that to work, I
I can't get that to work, I think you can't pass variables to taxonomy options :|
-------------------------------
http://www.sooperthemes.com/#-Drupal-Themes
This should be done, if it's doable
Agaric will investigate making a module to give Drupal "add content to this category" capability, if such a module doesn't exist somewhere. We have no particular immediate need, it just should be done, so pointers and prodding welcome! ~ben
People Who Give a Damn :: http://pwgd.org/ :: Building the infrastructure of a network for everyone
Agaric Design Collective :: http://AgaricDesign.com/ :: Open Source Web Development
benjamin, Agaric
My site invites users to
My site invites users to submit creative works and then encourages collaboration to revise and improve those works through community effort.
I deleted the original content types (page,story,etc) because they weren't useful to me.
I instead made new content types that were effectively pages, but more user friendly. So instead of "Create Page", I had "Submit Poetry", "Submit Short Story", "Submit Review", etc.
Some of the content didn't really fit well under "Create Content". For example, the "Create Poll" was renamed to simply "New Poll" and moved under the Polls page. So now, people go to see the polls and when they do, a new menu option appears there, "New Poll". I feel this is more intuitive. I later adding a betting module and some other stuff, and grouped this all under "Polls & Fun". If you click on "Polls & Fun", you will see option such as "Polls", "Wagers", "Games", etc. If you click on "Polls", you are taken to the "recent polls" page, and a new menu option appears "New Poll" right underneath "Polls". The same thing for "New Bet" under "Wagers" and "New Character" under "Games".
This still wasn't to my satisfaction, though, because there's stuff I wanted to do with taxonomy items that I couldn't really do with just node types. The module taxonomy_defaults came in real handy, here. I made a vocabulary called "Category" with terms like "Poetry", "Review", "Short Story", "Contest Entry", etc. Taxonomy_defaults allowed me to automatically assign these terms to new content without bugging the user about it. It's especially handy for content from two categories, such as "Poetry" and "Article" if you need to do that. It's nice not having to bug your users about taxonomy.
With the taxonomy_defaults module, a Category vocabulary, some re-arranging and renaming of the menu, proper use of menu filters (so that not every option appears on every page), and a little bit of creativity and planning, I feel I've got myself a navigation menu that I feel is pretty user-friendly. It's actually not as complicated as it sounds and can be a fun process.
I highly recommend taxonomy_defaults, though. This and Active Tags have both made my site a lot more user friendly.
(I'm not sure, but I think it would be possible to do something like this for forums too... no additional modules needed. It would mean you would have a different content type for each forum, and a corresponding menu item that would be filtered to only show when viewing that forum. (They could have the same text "Create Forum Post" since only one will be displayed at a time.) Then taxonomy_defaults could automatically stick it in its proper forum directory without forcing the user to choose a forum. That could go a long way toward making forums more user friendly. I'm definitely going to try it with my forums now...)