Hello,

I wonder if it is possible to create a block from a sitemap setting?

Files: 
CommentFileSizeAuthor
#8 site_map-available_as_block-1349560.patch636 bytescarolpettirossi
PASSED: [[SimpleTest]]: [MySQL] 21 pass(es).
[ View ]

Comments

mrfelton’s picture

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.

darrell_ulm’s picture

Category:support» feature

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.

headdragon’s picture

If I could link it into a panels existing node under add content

darrell_ulm’s picture

@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.

Thank you,

headdragon’s picture

Have the actual sitemap not the more show up in the block would be great.

darrell_ulm’s picture

Status:Active» Needs work

Right, that was what I was thinking also, although may need a way to selectively limit the data shown.

darrell_ulm’s picture

Status:Needs work» Active

Changed to active until there is a patch.

carolpettirossi’s picture

Issue summary:View changes
StatusFileSize
new636 bytes
PASSED: [[SimpleTest]]: [MySQL] 21 pass(es).
[ View ]

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’s picture

Status:Active» Needs review
carolpettirossi’s picture