in your controllers/default.py def page_one(): response.meta.description = 'page_one' return dict(foo='bar')
def page_two(): response.meta.description = 'page_two' return dict(foo='baz') etc etc etc On Thursday, December 31, 2015 at 3:27:07 AM UTC+1, Joe wrote: > > Hello Niphlod, > > Thanks for your reply. > > I tried to do that several different ways but I am sure I did it wrong. > Can you please let me know how to set this exactly? > > Thanks > > > On Wednesday, December 30, 2015 at 4:35:13 PM UTC+8, Niphlod wrote: >> >> set response.meta.description in the controller that generates the page >> .... >> >> On Wednesday, December 30, 2015 at 6:21:40 AM UTC+1, Joe wrote: >>> >>> Hello, >>> >>> By default meta tags are in menu.py >>> >>> response.meta.author = '' >>> response.meta.description = '' >>> response.meta.keywords = '' >>> response.meta.generator = '' >>> >>> What is the best way to place a unique meta description on each page of >>> the website? >>> >>> Thanks. >>> >>> Cheers, >>> >>> Joe >>> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.