This is a continuation of http://drupal.org/node/87460. I originally thought that admin>categories>add vocabulary did not support OG node types. After learning that it does, testing revealed inconsistencies in how node_get_types returns node types within add vocabulary. In my current implementation, this code from taxonomy.module
$form['nodes'] = array('#type' => 'checkboxes',
'#title' => t('Types'),
'#default_value' => $edit['nodes'],
'#options' => node_get_types(),
'#description' => t('A list of node types you want to associate with this vocabulary.'),
'#required' => TRUE,
);
delivers this list of node types
Types (key=nodes, weight=0): *
blog entry
book page
event
forum topic
image
page
poll
story
views calc
A list of node types you want to associate with this vocabulary.
However, when running the same code through Devel at the bottom of the add vocabulary page produces this list:
blog entry
book page
Address Group
Error Control
KAP Database Record
Legislative
Organization Homepage
Time Card
Volunteer Project
Volunteer Signup
event
forum topic
image
Jan's node
map
group
page
poll
quotes
story
survey
views calc
Comments
Comment #1
AjK commentedCan you try a test for me please. One node type you have is "Jan's node". It's name is configurable. Change it and take out the apos and see if that fixes your issue. Just want to make sure that's not the problem.
If it does, I'll remove it from the module.
thx, AjK
Comment #2
jarea commentedI looked under settings>content types and settings>janode and did not see any place to change the node name/type. So as a test, I deactivated the janode module and still got the same result as before.
Comment #3
magico commented@jarea: please provide a sample to be tested. Thanks
Comment #4
shyamarjarapu commentedHey,
I am not sure how fall this info could be helpful. I had same issue and I started with fresh install. Kept on adding all the modules I was interested in and kept on checking if all the nodes are present in vocabulary or not. Since everything was fine I took a back up (ver06) of both the database as well as the contents and I kept on adding my actual site contents. Then I took back up of files (ver07) and posted on web. Now with the new posts, I see only image and story nodes listing in the vocabulary.
So, I restored the contents as well as the database from ver06. Now I see all the node types. Then I just restored the database from ver07 with out modifying the contents from ver06. I see only image and story nodes in the add/edit vocabulary. If any of you think providing these two backups might help distinguish I will. But please suggest procedures I should follow so that I do NOT give out my site user details.
- Shyam
Comment #5
yched commentedMight be related : We had a strange error on the cck issue queue where a user lost sight of his content types : http://drupal.org/node/117599
Comment #6
shyamarjarapu commentedI think these steps might help you to reproduce. You guys decide if it's bug or not.
Setup:
1) Installed drupal 5.1.
2) Install OG Module as suggested by Skor in - 'Setup under 5.0' http://drupal.org/handbook/modules/og
(I am not sure if I messed up or somehow got messed up, but this is what happened.)
Reproduce:
1) Login as admin or user who can admin rights for OG
2) Home > Administer > Organic Groups > Organic groups configuration
3) Look for Node authoring form Section & Expand it
4) Under 'Omitted content types' list box, If available, select Image, Page, Story and Group
5) Scroll to the end save configuration
6) Now visit Home > Administer > Content Management > Categories
7) Add or Edit Vocabulary ...
8) Boom all the previous omitted content types in Organic Group Sections are missing
Can someone confirm if it's the same issue with your end as well?
- Shyam
Comment #7
Bruce Gordon commentedStill an issue in 5.1. My CCK created type "SomeType" was omitted from the list of types in ../admin/content/taxonomy/add/vocabulary. I then went and removed "SomeType" from the ../admin/og/og Omitted Content Types, and voila, it was now listed in the .../admin/content/taxonomy/add/vocabulary list of Types.
PHP 5.2.1 Apache 1.3. OG 5.x-3.x-dev OG forum 5.x-2.x-dev Taxonomy 5.1
Comment #8
dayre commentedI'm not sure what happened here... but my problem was with organic groups and taxonomy module. The problem was that my designated group content type was not showing up in the list of node types for a vocabulary i wanted to use with it.
I resolved the problem by fluke... i fiddled with the og settings trying different node types for the designated group. OG on it's setting page will remove the designated group node type from the list of node content types allowed on a group page (which makes sense i think). But after fiddling with the settings, i was able to get the group type to show up in the node content types list.... then i tried looking at the vocabulary page and it then appeared there as well.
I'm not sure where this problem originates.... i tried looking at node_get_types()... and og... and taxonomy... but couldn't figure out why it was being eliminated from the vocabulary node type listings.
Comment #9
pasqualleThis version is not supported. Reopen or create a new issue if the problem exists in any recent version (version equal or above Drupal 5)