I have different types of files for which I just want
to put up links
and somehow force the browsers to do a download. The standard html
would be to use an href. I was hoping to be able to do this via a
"resource" since I could then use the resource upload capability to
load a file from a browser. I can't seem to be able to do this. I can
use a resource to embed an image file for example but that is about
it. What about if one justs wants to serve that gif i.e. as a
download? I tried unselecting the "embed" option in the resource
creation screen but that did not work either. Clicking on the link
just puts me back to the resource creation screen.
This isn't supported in SmallWiki 1. A simple workaround would be to
directly link the resource using an external link:
*My
Resource>http://www.wiki.com/ResourceToDownload?action=MimeView*
What am I doing wrong? Essentially, I want to provide
downloads from
the wiki for a variety of files i.e. .pdf, .mid, .zip etc.
If you need to do this for a lot of resources, I suggest that you add
another property to enforce the download programmatically. This would
mean you need to add a few simple lines of code in the classes
Resource, ResourceEdit and VisitorRendererHtml following the pattern of
#embed.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch