[Grok-dev] Conditional linking to static images
darryl at darrylcousins.net.nz
Tue Jul 3 16:57:43 EDT 2007
On Tue, 2007-07-03 at 15:10 -0300, Luciano Ramalho wrote:
> How do I obtain the filesystem path to the static directory? In some
> Kirbi views I need to check whether we have the book cover
> corresponding to a book, and those will be stored as static images. If
> we have the cover, an URL to it will be generated, otherwise we will
> substitute the URL to a placeholder image.
Would this be what you need?:
> I've been reading about DirectoryResource but it seems it was not
> designed with this use case in mind.
> Grok-dev mailing list
> Grok-dev at zope.org
More information about the Grok-dev