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

hedroom’s picture

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

wmostrey’s picture

Assigned: Unassigned » wmostrey

prateek,

can you confirm that this solves your issue?

hedroom’s picture

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

effebi’s picture

I have same problem with "bookreview" module, in node/list I can see pages but not bookreview content type list nodes

wmostrey’s picture

Thanks for the code hedroom, i updated this in http://drupal.org/cvs?commit=58258

Can everyone confirm this fixes this issue?

wmostrey’s picture

Status: Active » Closed (duplicate)

Duplicate of #112267.

franc23’s picture

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.