On Jan 4, 2008 4:40 AM, Jorge Martinez <[EMAIL PROTECTED]> wrote:
> I raised a question a couple of weeks ago about a sitemap generation whithin
> Roller 4.0. and Dave asked which kind of sitemap, so I'll try to explain
> which purpose is on behind.
>
> I'm running Roller 4.0 for a corporate blog (
> http://www.aparcalia.com/Observatorio) and I'm 'fighting against' Google for
> having the whole site properly indexed and crawled. One of the must-task
> whithin this process is to provide Google with a Sitemap of the site
> including the complete list of URLs claimed to be crawled and indexed, and
> here is where I would find very useful a 'sitemap-generator' whithin Roller
> 4.0. I know this feature is supported by other blog platforms, so I wonder
> whether Roller has such a tool. I went through all documentation but didn't
> find anything.
Roller does not have a sitemap feature, but you should be able to
write one yourself.
Here's how I would do it:
1) Use your existing aggregated site-wide "front-page" blog. If you
don't have one you can add the $site model to an existing blog (i.e.
add the classname below to the list of custom models in the blog's
Settings page).
org.apache.roller.weblogger.ui.rendering.model.SiteModel
2) Create a new page template in your blog with the name sitemap.html
or sitemap.xml, whichever is appropriate.
3) In your new sitemap page, use template code and the $url and $site
models to display all of links you would like to index in the
appropriate format for Google. See the Template Guide for docs on
those models.
4) Make Google aware of your site map using the appropriate technique.
Hope that helps...
- Dave