Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
frjo CreditAttribution: frjo commentedYou can not display nodes in site map.
Comment #2
jeffschulermarked #300979: Display individual nodes, or by content type as duplicate.
Comment #3
jeffschulermarked #141170: Displaying pages not in the menu as duplicate.
Comment #4
jeffschulerThis 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.
Comment #5
druppeler CreditAttribution: druppeler commentedCould 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!
Comment #6
frjo CreditAttribution: frjo commentedSites 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.
Comment #7
druppeler CreditAttribution: druppeler commentedHi,
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.
Comment #8
paulo_graca CreditAttribution: paulo_graca commentedI've hack this module to display the nodes (I needed it to display website structure to the client):
Comment #9
jofdesign CreditAttribution: jofdesign commentedThanks to paulo_graca. I modified his code to display node title as link (in site_map.module at line 407):
Comment #10
knalstaaf CreditAttribution: knalstaaf commentedPaulo_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?
Comment #11
jofdesign CreditAttribution: jofdesign commentedSorry, no idea yet for D7.