Friday, February 2, 2007, 1:34:21 AM, John wrote:
> does anyone know of an image gallery type dynasnip?
i've written a very simplistic one for
http://sock.strain.at/ - i
could dig it up again if you are interested. however, i don't exactly
remeber how easy to use it is ;)
> I've been looking into a way to display image file attachments via a
> template but !attach.xxxx stuff is a little beyond my knowledge.
you can can get the url to a snip attachment via
{resource-url}attachments/{.url-name}/<filename>
where you replace <filename> with the name of the file you want to
refer.
i realize that this is not very convenient, and BE AWARE that,
unfortunately this kind of url creation _does not_ work with snips
that are included someplace else. most notably this is the case for
weblog entries.
the solution would be to resolve/render snip local metadata (or
"internal snips" is this is misleadingly called in vanilla) _before_
including a snip. this, however, leads to some other open questions.
finding and implementing a not-comletely-sucking solution is on the
todo list.
--
earl