Closed (duplicate)
Project:
Node list
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Feb 2007 at 10:20 UTC
Updated:
6 Nov 2007 at 03:34 UTC
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.
Comments
Comment #1
hedroom commentedThe 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
Comment #2
wmostrey commentedprateek,
can you confirm that this solves your issue?
Comment #3
hedroom commentedThere 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
Comment #4
effebi commentedI have same problem with "bookreview" module, in node/list I can see pages but not bookreview content type list nodes
Comment #5
wmostrey commentedThanks for the code hedroom, i updated this in http://drupal.org/cvs?commit=58258
Can everyone confirm this fixes this issue?
Comment #6
wmostrey commentedDuplicate of #112267.
Comment #7
franc23 commentedNone 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.