I made content type name "Munkaközvetítő". (I wanted to see it in my forum.) After I set Forum vocabulary (first picture), but I can't set it required.
When I add my new content type, Forum vocabulary isn't set required. (perhaps) When I add forum topic, Forum vocabulary set required.

I think, Forum vocabulary's required property will be variable or set it required.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gdevlugt’s picture

Version: 6.x-dev » 6.0-rc3
Status: Needs review » Active
FileSize
876 bytes

Hi,

The line of code which is causing this is in forum_form_alter() :

$form['settings']['required'] = array('#type' => 'value', '#value' => FALSE);

The explicitly hardcoding the FALSE is what's causing this. Since I'm not that familiar with the inner workings of the Forum module, I can't say exactly why this is. I would suspect that since the requirement for choosing a term from this vocabulary when adding/editing a forum post is set manually, it is to let you use the vocabulary for other content types (optionally).

I attached a patch to this post which will display the 'Required' checkbutton under the Settings fieldset. It works but like I said before, there might be some special reason why it's hidden.

gdevlugt’s picture

Version: 6.0-rc3 » 6.x-dev
Status: Active » Needs review
cburschka’s picture

Version: 6.0-rc3 » 6.x-dev
Status: Active » Closed (works as designed)

#176282: Forum vocabulary is mandatory for node types (and prints notices)

Forcing non-forum-topic nodes to appear in the forum is not currently a supported feature as far as I can tell...

cburschka’s picture

Version: 6.x-dev » 7.x-dev
Category: bug » feature
Status: Closed (works as designed) » Needs review

Wait, this would be possible in theory. However, you would be making the forum mandatory for all node types that /could/ be placed into the forum. This would be a confusing change that would require documentation, and I think it's very much a feature request, so it should be bumped to D7.

Liam McDermott’s picture

Priority: Normal » Minor
Status: Needs review » Needs work

Patch will not apply to 7.x-dev, so am marking 'needs work'. This is also not high on the priority list, most people expect that a forum topic must have a forum. It's very close to being 'by design' to be honest (maybe someone else will mark it as such). :)

cburschka’s picture

You mean "most people expect that only a forum topic must have a forum"? Because this patch is about forcing non-topic nodes into forums, not having topics outside forums...

aaron’s picture

Priority: Minor » Normal

I agree with this. I've set up a forum allowing both forum threads and a custom node type, and discovered that not only are the custom node types not required to be in a forum, there's no way to set the vocabulary as required.

It should either be required for all content types appearing in a forum, or have the admin allow it to be required (with required by default). I think the first option would be suitable for consistency with current behavior.

aaron’s picture

Version: 7.x-dev » 6.4
Priority: Normal » Critical

Looks like something broke after #176282: Forum vocabulary is mandatory for node types (and prints notices). As I read it, that patch was supposed to make forum vocabulary optional, but required in the forum module. That patch was applied. However, now we can no longer change the required settings for the forum vocabulary, making setting the non-forum node types forum vocabulary to required impossible (if you can follow that).

That means this is broken in 6 and 7. Setting the version and priority to critical for d6. Hoping to dig up the patch that broke #176282: Forum vocabulary is mandatory for node types (and prints notices).

aaron’s picture

Category: feature » bug
aaron’s picture

Status: Needs work » Needs review
FileSize
1.23 KB

Looks like this has been fixed already in d7, although I can't find the issue for it. Here's the patch for d6.4.

Gábor Hojtsy’s picture

Version: 6.4 » 7.x-dev

The original change was made here: http://cvs.drupal.org/viewvc.py/drupal/drupal/modules/forum/forum.module... (via CVS blame). So from making forum vocabulary required in all cases, it changed to making forum not required in all cases and making it required via manual coding when we deal with an actual forum node type.

If we do expose the checkbox, people might assume that making the vocabulary non-required will make it non-required for forums, which is not true. Also, if people do make it required, our existing code to make it required might go fubar, since two different codes try to make it required (that needs to be tested). So this does need some more thought and discussion.

The latest Drupal 7 code still has this same commit intact as far as CVS blame tells me, so this should be fixed there.

Status: Needs review » Needs work

The last submitted patch failed testing.

mikaskay’s picture

It creates a problem only if you want to have ONE and the SAME and ONLY ONE taxonomy required for your content, including forum posts. This is currently impossible. While you can create a new taxonomy to be required for forum and other content, it forces the user to deal with TWO required taxonomies when posting to the forum. Whats more, with the new taxonomy in place, the initial forum taxonomy may become useless. But site owners and users are still required to put some useless words just to satisfy the initial forum taxonomy. The solution seems easy: If the initial forum taxonomy is *required* for all forum posts, why isn't it required for all other content associated with it? That seems a bit arbitrary. I assume it has something to do with the inner workings of the "special" forum taxonomy.

aharown07’s picture

Anybody know of a working D6 patch for this... if I understand the issue here correctly, it's what I'm looking for: the ability to make forum vocab. required for certain node types in addition to "Forum topic" node type. (If "real world" example helps: on our site, we handle all comments in the forums, but we also have some articles and other things we want to discuss only in the forums... currently, it's easy to forgot to assign it to a forum and result is comments that are not where they should be).

Edit: nevermind. Patch in #10 works fine if apply manually... it only comments out one line (line disables the "required" ckbx). So far this seems to work fine.. though I'm sure there's a better non-core-hack way to do it.

juan_g’s picture

It creates a problem only if you want to have ONE and the SAME and ONLY ONE taxonomy required for your content, including forum posts. This is currently impossible.

Well, for example, I need this to convert a couple of sites to Drupal. They have many topics, and each topic has subsections such as a forum, a guide of resources, articles, etc., about that topic. I hope this is possible in some way using the forum vocabulary.

catch’s picture

Version: 7.x-dev » 6.x-dev

The forum vocabulary is now a field in D7 which means this no longer applies, moving back to D6.

dpearcefl’s picture

Priority: Critical » Normal
Status: Needs work » Postponed (maintainer needs more info)

Is there any interest in this issue? Has this been fixed in the latest D6?

pp’s picture

No this isn't fixed in D6, see the pictures. (Drupal-6.x-dev)

Is there any interest in this issue? I use D7.

dpearcefl’s picture

If there is no interest or no patch forthcoming, then this issue should remain postponed.

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Active

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.