I wonder if it is possible to create a block from a sitemap setting?
I wonder if this could be implemented as a Bean plugin. http://drupal.org/project/bean_twitter_pull is a good example of using Bean to allow users to create and configure their own blocks that integrate with a module and its settings.
Interesting for a feature request. This may just work with a module like,http://drupal.org/project/nodesinblock
Have not tested, as /sitemap link may not be treated as a normal 'node.'
The block option could be created for site_map, with some more code.
If I could link it into a panels existing node under add content
@headdragon Yes, worth a look. Support for that would likely be quick. Seems like this should be tested, and assuming if not there, just another hook to get it to show up.
Have the actual sitemap not the more show up in the block would be great.
Right, that was what I was thinking also, although may need a way to selectively limit the data shown.
Changed to active until there is a patch.
I've created the block using hook_block_info. So, the block is available on admin/structure/block named as Site map. The block content shows the same content as site_map_page.
Hope that works for everyone.
@carolpettirossi, I found two issues, please check them below:
- the block has no title;
- if the block is added to any region, the node title will be overriden with sitemap's one (considering that there aren't modules which higher weight than this one).
@rafaolf thanks for the review.
I fixed the issues reported.
Please, could you test the new patch?
The last submitted patch, 12: site_map-available_as_block-1349560-12-7.patch, failed testing.
The last patch was missing a "return" in the function of the page content, resulting in a blank page for /sitemap (it was breaking the tests).
Drupal is a registered trademark of Dries Buytaert.