Stefano Masini wrote:


Jean-Marc Orliaguet wrote:

it is possible to add the links on the front-page and hide them with some CSS markup which won't make any difference for robots.


Yes, that is surely a good idea. It looks like a good solution.
Let's just make sure that the html contains both the links and the payoffs, so that the robots will be able to index properly.
Something like:


<div class="invisible">
  <a href="www.site.com">Site, doing bla bla</a>
  <a href="www.company.com">Company, the best in bla bla</a>
  <a href="www.mywebsite.com">My web site, how cool I am</a>
</div>

Hi,
thanks for the info

I've reorganized the scripts a bit. I've put all sponsors in a list (custom_get_sponsors.py set in Zope's ram cache) and there is also an invisible portlet on the front page under "contact information" that shows the content of http://europython-develop.zope.nl/custom_list_sponsors
(do a "View source" for instance)


/JM
# put all sponsor banners, urls, descriptions here

sponsors = [
    {'banner': '/banners/ad1.gif',
     'title': 'Ad title',
     'text': 'Ad text here',
     'url': 'http://www.python.org',
    },
    {'banner': '/banners/ad2.gif',
     'title': 'Ad title',
     'text': 'Ad text here',
     'url': 'http://www.europython.org',
    },
    {'banner': '/banners/ebook_468x60.gif',
     'title': 'Ad title',
     'text': 'Ad text here',
     'url': 'http://www.apple.com',
    },
]

return sponsors
##parameters=**kw

sponsors = context.custom_get_sponsors()
from random import choice
sponsor = choice(sponsors)

rendered = '<a href="%s"><img src="%s" alt="%s" width="468" height="60" title="%s" border="0" /></a>' % (
    sponsor['url'], sponsor['banner'], sponsor['title'], sponsor['text'])

return rendered


_______________________________________________
EuroPython mailing list
[email protected]
http://mail.python.org/mailman/listinfo/europython

Reply via email to