Problem/Motivation

The about section in the help of the Forum module describes containers and forums as hierachically with forums being placed in containers. The functionality has been changed so that for example containers can be placed into forums.
The Forum module creates the content type "Forum posting". This is not mentioned in the help.

Proposed resolution

Rewriting the about section to describe the what containers, forums and topics are and how they can be placed into each other, and that the Forum Modules adds a new content type for this.
Mentioning that as a content type, Forum postings can have additional fields etc. with a link to the Field and Field UI pages. Examples for these are in other help texts; for example in "Managing user account fields" in the User help.

Remaining tasks

User interface changes

API changes

Comments

larowlan’s picture

Containers can't be inside forums, if they can that's a bug

ifrik’s picture

Issue summary: View changes
StatusFileSize
new6.34 KB

The help text on the add/edit form for containers clearly states that they can be placed inside forums, and the drag-and-drop on the Forum list page also supports this.
So apparently it's intended.

Since there are also use cases for this, we should just change the help text to reflect this new functionality.

drubb’s picture

Assigned: Unassigned » drubb
Issue summary: View changes
StatusFileSize
new17.37 KB

ifrik is right, containers can be placed inside forums, see the attached screenshot. The difference is, that forums can contain forum topics, and containers can't. They are just used as grouping elements. As for me, it's ok to break down a large forum to smaller forums and group them using containers, so I don't consider this functionality a bug.

I'll have a look at the text!

drubb’s picture

Status: Active » Needs review
Issue tags: +drupaldevdays
StatusFileSize
new3.72 KB

Here's my patch. I've changed the Drupal 6 Multisite stuff, too :-)

jhodgdon’s picture

Status: Needs review » Needs work

This looks pretty good, thanks!

One note:
"So they are just used to add structure to larger forum hierarchies." ==> This is not a sentence. It either needs to be combined with the previous sentence, or maybe just dropped?

Another note: Forum topic is not really an "entity", it's a content type specifically. So we should not mention entities here, but call it a content type... I also disagree that we should specifically mention that you can add fields... I think we should just say in the About that the forum module adds a new content type called "Forum post", and maybe link to the Node help for more information about content types. I don't think we should link directly to the field topics.

drubb’s picture

Status: Needs work » Needs review
StatusFileSize
new3.7 KB

Ok, I've changed it a bit, referring to content types instead of entities, and pointing to the help page for the node module. I've left the fieldability stuff for the moment, because I think many people have a clear idea about the fields necessary for a forum topic, and we should point them in the right direction how to achieve this using Drupal.

jhodgdon’s picture

Status: Needs review » Needs work

Well, we still want the mention of the content type to get into the About section... and the new docs have a comma splice in "Forum topics are a content type, you can extend them by adding fields through the Manage fields tab on the..." . Also the Node topic has all the information about fields, so I don't really see why we need to duplicate it here.

So what I would like to see instead is in the About [NOT in Uses], we add a sentence like:

The Forum module defines and uses a content type called "Forum post"; see the Node module help page for more information about content types and their fields.

Having a separate bullet point about the fields in Uses does not seem like a good idea to me.

Also... I guess the hierarchy stuff is not really quite right now. It says you can have:
- Forums
-- Forum topics
--- Comments
But really it seems like you can have an arbitrary hierarchy of forums and containers at the top level, before you get to the topics/comments. So maybe this whole structure of the docs doesn't make sense to describe as a hierarchy? It's really more of a free-form mess. ;)

How about if we instead have a paragraph about how you can put forums and containers inside each other to make a hierarchy. And then we can have another paragraph about how individual topics get posted to forums, and get commented on?

I just don't think it makes sense to talk about a hierarchy in this way if it's so free-form...

drubb’s picture

Status: Needs work » Needs review
StatusFileSize
new3.13 KB

I think we're getting closer, here's a new version.

jhodgdon’s picture

Status: Needs review » Needs work

Looking good!

Do we really need this sentence, do you think?

"Forums are useful because they allow community members to discuss topics with one another while ensuring those conversations are archived for later reference. " ?!? I think it could be removed.

Also this wording is slightly awkward to me: "The Forum module adds and uses a content type Forum topic"... maybe just say "... uses a content type called Forum'?

Anyway, the rest of this looks great! I think it's very clear.

drubb’s picture

Yes, this sentence is kind of bla, I'd agree to remove it. Regarding the content type, it's called 'Forum topic' on the content types page, and I think we should use this name on the help page, too. What do you think?

jhodgdon’s picture

Yes, sorry, should be the same as what you see in the UI. What I meant is that it needs the word "called" in there. ;)

drubb’s picture

Status: Needs work » Needs review
StatusFileSize
new2.98 KB

Ah, I see! Here's the new patch.

jhodgdon’s picture

Status: Needs review » Needs work

Great, thanks!

So I finally actually installed and tested the patch, and noticed a couple of small things that I didn't really see before:

a) "A forum is represented by a hierarchical structure, consisting of"
==> This line needs to end in a : because it comes before a list.

b) We don't normally want to use the word "Drupal" in help. So we should pick different names for the sample forums and topics, and probably none of them should end in a . either, like "Installing Drupal.".

The rest looks great and the formatting is good!

drubb’s picture

Status: Needs work » Needs review
StatusFileSize
new4.46 KB

Ok, next one...

ifrik’s picture

Status: Needs review » Reviewed & tested by the community

Thanks,
the comments from #13 have been taken up, and the example given for forums and topics are a good choice because they are based on very general knowledge.
All links work correctly, and none refers to a module that could be uninstalled.
The formatting is good.

Just two tips for the future, if you make interdiffs instead addition to the patch then it is easier to review what has changed from one patch to the other, and usual way of numbering is to give a new patch the number of the comment in which it is posted - that way they are easier to find in a longer list of comments. See https://www.drupal.org/node/1488712

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 14: update-hook-help-forum-2471793-5.patch, failed testing.

Status: Needs work » Needs review
jhodgdon’s picture

Status: Needs review » Needs work

OK... I don't want to debate this endlessly, but ... could we choose a more universal example? Keeping in mind that we translate Drupal into a LOT of languages, around the world, I do not think that artichokes are a very universally-known example. Maybe carrots or potatoes would be a better choice? Also maybe the reply example could be something about boiling ir baking rather than the generic "you have these options"? We want to make this obvious -- people shouldn't have to think too hard about it when reading this help, and I had to read "you have these options" a couple of times before I figured out what it meant.

tadityar’s picture

Status: Needs work » Needs review
StatusFileSize
new4.47 KB
new1.2 KB

Changed those into something else.

nanda@globalsoftlab’s picture

+1 to rtbc

+++ b/core/modules/forum/forum.module
@@ -30,8 +30,8 @@
-      $output .= '<li>' . t('<em>Forum topics</em> submitted by users (for example, <em>How to cook artichokes</em>), which start discussions.') . '</li>';
-      $output .= '<li>' . t('Threaded <em>comments</em> submitted by users (for example, <em>You have these options...</em>).') . '</li>';
+      $output .= '<li>' . t('<em>Forum topics</em> submitted by users (for example, <em>How to cook potatoes</em>), which start discussions.') . '</li>';
+      $output .= '<li>' . t('Threaded <em>comments</em> submitted by users (for example, <em>You wash the potatoes first and then...</em>).') . '</li>';

Makes sense

ifrik’s picture

Status: Needs review » Reviewed & tested by the community

Thanks,
potatoes work indeed better than artichokes, and the example for a comment also should be easy to understand.

xjm’s picture

Assigned: drubb » larowlan
Issue summary: View changes
StatusFileSize
new26.36 KB

Aw, I was enjoying that we had text in the UI about artichokes. ;) But agreed with @jhodgdon that using something a bit more common makes it easier to understand. Thanks @tadityar for the updated patch.

+++ b/core/modules/forum/forum.module
@@ -25,24 +25,24 @@ function forum_help($route_name, RouteMatchInterface $route_match) {
+      $output .= '<li>' . t('Optional <em>containers</em>, used to group similar forums. Forums can be placed inside containers, and vice versa.').'</li>';

So I'm a bit concerned that in #1 we have the forum maintainer saying this behavior doesn't exist, and if it does exist, it's a bug. Then @ifrik tested it and confirmed that it happens. I did the same:

So it does work and even behaves as one might expect, with the containers grouping topics within the main forum. I agree that we should document the feature if it exists, but I'd like a signoff from a forum maintainer on this since it sets expectations for how forums will be used. So assigning to @larowlan.

xjm’s picture

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

If someone fixes the Forum module so that this behavior doesn't exist, then that patch should update the help. Meanwhile, we need the help to reflect what the module actually does, right?

I've left a message in IRC for larowlan since it has been two weeks and no feedback yet. But my feeling is that the docs need to reflect what the module currently does. @larowlan: please set to RTBC or else postpone this on another issue that is fixing the possibly buggy behavior. Thanks!

larowlan’s picture

Status: Needs review » Reviewed & tested by the community

Yeah ignore me, the interface text clearly states Containers are usually placed at the top (root) level, but may also be placed inside another container or forum. - no idea where I came up with that idea.

xjm’s picture

Assigned: larowlan » Unassigned
Status: Reviewed & tested by the community » Fixed

Excellent, thanks @jhodgdon and @larowlan!

This issue only changes user-facing strings and markup, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Committed and pushed to 8.0.x.

  • xjm committed 62f4de6 on 8.0.x
    Issue #2471793 by drubb, tadityar, ifrik, jhodgdon: Update hook_help...

Status: Fixed » Closed (fixed)

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