2010/8/6 mdipierro <[email protected]> > You should this in a model, before the view is executed: > > response.title='My Product view' > response.meta.keywords='phones,calls,smartphone' > response.meta.description='This is a phone seller site made with > web2py' > response.meta.author='me' > > The sitemap cannot be accomplished by a helper. It needs a helper and > a storage.
In this example you are declaring globally. The problem is that SEO variables. must be unique for each view, and sometimes, must be built according to the parameters received, as in the example of Canonical URLS. take this example: / Showproduct/01 the url needs to be changed to /showproduct/foo-smartphone and also title of the page needs to be amended in accordance with the product, response.title = "my phone shop | phones | Smartphone foo" response.keywords = "foo, phone, brand, 3G, 5 mp cam" Regarding the sitemap is a good point to look how this is being done out there, to get an idea: http://sitemaps.org/protocol.php http://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/?from=olddocs COOL FEATURE http://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/?from=olddocs#pinging-google http://code.google.com/p/django-seo-tools/ >

