Silva 2.2 Layot: How to

"Luthiger Stoll Benno" <[email protected]> Tue, 1 Jun 2010 17:40:52 +0200
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Hello all

I'd like to develop a layout using Silva 2.2.
Unfortunately, I stumble over the task to display an image on the page.
The image is my_layout/static/my_image.gif.
What's the html code in the page template to display this image?

I've tried the following:
<div tal:define="resourcebase request/resourcebase/absolute_url;">
  <img tal:attributes="src
string:${resourcebase}/++resource++my_layout/my_image.gif" />
</div>

However, this doesn't display the image.
Do I have to register the directory for the image resources as I did for
Silva 2.1?
If yes, how do I this best?

Regards,
Benno


PS: The documentation on http://docs.infrae.com/silva/layout/ is not of much
use in this case.
I have the impression, it contains some misleading mistakes.

_______________________________________________
silva-dev mailing list
silva-dev-IAPFreCvJWM6s/[email protected]
https://lists.infrae.com/mailman/listinfo/silva-dev
smime.p7s (application/x-pkcs7-signature, 4.5 KB) - not displayed