[Grok-dev] Conditional linking to static images
Luciano Ramalho
luciano at ramalho.org
Tue Jul 3 14:10:00 EDT 2007
Hello,
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.
I've been reading about DirectoryResource but it seems it was not
designed with this use case in mind.
Cheers,
Luciano
More information about the Grok-dev
mailing list