Nodelist doesnot show blog entries in the list
prateek - February 17, 2007 - 10:20
| Project: | Node list |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | wmostrey |
| Status: | duplicate |
Jump to:
Description
I installed nodelist and it is working fine for me.
But it does not show the blog entries in the list of nodes.
I have made double sure that the option is selected in configuration page.

#1
The reason that Blogs are not showing up in the list is because the "variable_get('nodelist_types')" function returns 'Blog entry' as a nodelist type where the entry in the "node" table is 'blog'
I fixed this on line 253 of nodelist.module
Old Line = $node_types = drupal_map_assoc(node_get_types('names'));
New Line = $node_types = node_get_types('names');
The drupal_map_assoc() function seems to be the problem.
Wade
#2
prateek,
can you confirm that this solves your issue?
#3
There is also a typo on line 144 of nodelist.module in the comparison operator. " = " needs to be " == "
144 - if ($cached = cache_get('nodelist:'.$md5)) {
W
#4
I have same problem with "bookreview" module, in node/list I can see pages but not bookreview content type list nodes
#5
Thanks for the code hedroom, i updated this in http://drupal.org/cvs?commit=58258
Can everyone confirm this fixes this issue?
#6
Duplicate of #112267.
#7
None of the above worked for me. The problem was any "deletable" content types were not displaying. And any new content type I tried to add also did not display. But it said the content type had been created successfully.
So when I compared databases across two drupal 5.x installs, I found that node_type table was missing here. Please make backup of your existing database before trying the following fix.
I copied the "node_type" table from the working drupal install to this faulty one and it fixed it. Now I am able to add all content_types and content is showing up properly again.
Hope this solves the issue. Please rectify if this is a wrong method.