Is it possible to display nodes in this sitemap? Right now I just see the menu. I am not sure how to get nodes to show up too.

Comments

frjo’s picture

Status: Active » Closed (won't fix)

You can not display nodes in site map.

jeffschuler’s picture

jeffschuler’s picture

jeffschuler’s picture

This would be a really useful feature.

As a workaround, I tried making my taxonomy into a menu using Taxonomy Treemenu then including the new menu on the Site Map. The method that TTM uses, though, means it can't hijack the menu item URLs before Site Map gets to them. See #557616: Doesn't work with Site Map.

I have a couple taxonomy terms with a small number of nodes that are of high importance on the site and therefore need to appear on the site map.
I think I will end up doing this with Views and Panels, but this seems like a pretty common use-case for a site map, and I urge you to re-consider including this functionality in the module.

druppeler’s picture

Status: Closed (won't fix) » Active

Could the author(s) of the module please explain why nodes such as Pages, Book page, custom CCK content nodes, are not displayed in the site map?

I must be really missing something, but I see this as a basic requirement for a sitemap - I think the purpose of a sitemap is to link to content in the site.

Thanks!

frjo’s picture

Version: 6.x-1.0 » 6.x-2.x-dev

Sites I normally work with have hundreds or thousands of nodes. To list them all is normally not feasible or practical.

If you want to display some special structure of nodes my suggestion is to make a custom menu just for the site map and place the nodes etc. there.

druppeler’s picture

Hi,

Thank you for your quick response.

I can see in the case of many hundreds or thousands of nodes that one would not want to list them all in the sitemap. Thanks for explaining.

In my case I had a number of pages such as About us, Why choose us, etc and a number of book pages (mostly help pages) that I would like to have listed in the sitemap.

Thanks for your suggestion to create a menu and then have it display in the sitemap - that will work fine for me.

paulo_graca’s picture

Version: 6.x-2.x-dev » 6.x-2.1

I've hack this module to display the nodes (I needed it to display website structure to the client):

406
407    // Reset $last_depth in preparation for the next $term.
408    $last_depth = $term->depth;
	$newres = taxonomy_select_nodes (array($term->tid));
	$output .= "<ul>";
	while ($node = db_fetch_object($newres)) {
		$output .= "<li>".$node->title."</li>";
	} 
	$output .= "</ul>";
jofdesign’s picture

Thanks to paulo_graca. I modified his code to display node title as link (in site_map.module at line 407):

	// Reset $last_depth in preparation for the next $term.
        $last_depth = $term->depth;

	$newres = taxonomy_select_nodes (array($term->tid));
	$output .= "<ul>";
	while ($node = db_fetch_object($newres)) {
	$node_link = l($node->title, 'node/'. $node->nid, array('attributes' => array('title' => $node->title)));
	$output .= "<li>".$node_link."</li>";
	} 
	$output .= "</ul>";
  }
knalstaaf’s picture

Issue tags: +display, +menu, +nodes, +depth, +site map

Paulo_graca & jofdesign: have you got any idea how to fix this for D7?

There should be an option to switch the display of nodes / menu depth it on or off imo. That would complete module. No?

jofdesign’s picture

Sorry, no idea yet for D7.