I have this in index.html before {{extend 'layout.html'}}
{{
response.title='My Site Name'
response.meta.keywords='web2py web development Denver'
response.meta.description='my description'
response.meta.author='my name'
}}
Most of the content of the page is in layout.html
#------------------------------------------------------------------------------------------------
I also installed the simple SEO plugins from slice and in my db.py I have:
#-------------------------------------------------------------------------------------------------
from plugin_simple_seo.seo import set_seo_meta
set_seo_meta(title='web2py-simple-seo',
author="daxSlab",
description='Simple SEO metadata plugin for web2py including
Open Graph and Twitter Cards',
keywords='web2py consulting in Denver',
card='summary',
generator="Web2py Web Framework",
url='http://myurl.com',
image=['http://myurl.com/image1.jpg',
'http://myurl.com/image2.jpg'],
site_name='my_site',
locale='en_US')
For the above I am not sure what will be the url or the image.
Anyway, I have both. Non works.
On Thursday, June 15, 2017 at 9:16:25 AM UTC-4, Carlos Cesar Caballero
wrote:
>
> Hi, it seems to be working in my apps, can you share how are you using it,
> and the web2py version?
>
> Greetings.
>
> El 14/06/17 a las 15:21, [email protected] <javascript:> escribió:
>
> Did anyone had any success on inserting metadata on layout or SEO (
> http://www.web2pyslices.com/slice/show/2048/simple-seo) plugins? It
> doesn't seem to work at all.
>
>
> On Friday, January 3, 2014 at 9:25:14 AM UTC-5, Gael Princivalle wrote:
>>
>> Hi Bruno.
>>
>> In a same page where you make translations, how can you manage meta
>> informations for all languages ?
>> With a if T.accepted_language you can set different values, but when you
>> give your site to a tool like that :
>> http://www.seoutility.com/it/tools/google/sitemap_generator.aspx
>> it see only meta informations in default language.
>>
>> page title (response.meta.title)
>> page keywords ( response.meta.keywords)
>> page description ( response.meta.description)
>>
>> How do you manage this argument ?
>>
>> Thanks.
>>
>>
>> Il giorno venerdì 6 agosto 2010 15:13:58 UTC+2, rochacbruno ha scritto:
>>>
>>> SEO is basically done through:
>>>
>>> page title (response.meta.title)
>>> page keywords ( response.meta.keywords)
>>> page description ( response.meta.description)
>>>
>>> plus:
>>> the robots.txt file under website root directory,
>>> good practices for creating links and inserting images,
>>> Semantic html markup ( I mean always including "name" , "alt", "title"
>>> for relevant tags),
>>> and also using correctly the most relevant tags (h1,h2,h..., <em>,
>>> <strong> etc )
>>>
>>> And one of the most important thing: Build a sitemap [1]
>>>
>>> web2py is ready to do all that, but we need to do it all from the
>>> scratch, what we need now is a helper or a mechanism to make it more user
>>> friendly.As is done by the plugin ALL-IN-ONE-PACK-SEO on wordpress for
>>> example.
>>>
>>>
>>> [1] http://en.wikipedia.org/wiki/Site_map
>>>
>>>
>>>
>>>
>>>
>>> 2010/8/6 mdipierro <[email protected]>
>>>
>>>> web2py does not care. I do not think there is any difference between
>>>> frameworks about this. The issue how you use them.
>>>>
>>>> web2py provides response.meta that combined with the default layout
>>>> allows you to set
>>>>
>>>> response.meta.keywords
>>>> response.meta.description
>>>> response.meta.author
>>>>
>>>> If you have recommendations about specific features that need to be
>>>> implemented at the framework level, let us know.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Aug 6, 6:13 am, puercoespin <[email protected]>
>>>> wrote:
>>>> > Is web2py designed for a good practices about SEO? Are some frameworks
>>>> > SEO-friends and others no SEO-friends and, if this is true, are web2py
>>>> > SEO-friend?
>>>> >
>>>> > Thanks
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> http://rochacbruno.com.br
>>>
>> --
> 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 [email protected] <javascript:>.
> For more options, visit *MailScanner ha detectado un intento de fraude en
> la siguiente página web "groups.google.com". No confíe en esta página web:*
> *MailScanner
> ha detectado un intento de fraude en la siguiente p�gina web
> "groups.google.com". No conf�e en esta p�gina web:*
> https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.