Bas van der Vlies <basv@sara.nl> [2004-09-01/11:10]:
> Emmanuel Blot wrote:
> > Christopher Lenz wrote:
> > > You can add images as attachments to Wiki pages and tickets. This
> > > feature exists since 0.7.
> > [...] Ie, if I add "image.png" to WikiPage, and WikiPage contains a
> > reference to
> > http://host/trac/attachment/wiki/MediaOptiques/logo-dvdxrw.png
> > the image is not displayed in the Wiki-rendered page, the URL is
> > kept untouched (ie the URL is shown, not replaced with the actual
> > image)
>
> The way i do it is:
> - attach the file
> - click on the attachment link
> - Copy the url of the image location, is something ending ?format=raw
> - Place this url in the wiki page and you are in business ;-)
Yes, it can be done. It would be nice though if there were an easy and
straightforward way to reference attached images by using some wiki
shorthand notation, like PageName/image1.png.
On a sidenote, I also miss the possibility to use relative paths to
images; things like images/xy.png or /images/xy.png are not recognised
as images, and there is no way (read: no syntax) to actually force an
image tag with whatever URL I want (think dynamically generated images,
with URL ending in .cgi/pl/py/whatever, or image formats not known to
Trac).
But I guess I should open a ticket instead of stating this here :)
Cheers,
Dan
--
. o . Daniel Roethlisberger <daniel@roe.ch> /pgp key\
. . o 144D 6A5E 0C88 E5D7 0775 FCFD 3974 0E98 804A 06B1
o o o Life would be much easier if I had the source code
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : /archive/trac/attachments/20040901/16c43277/attachment.pgp