On Apr 30, 7:09 pm, Mitar <[email protected]> wrote:
> I would like to do that through attachments so that I would be able to
> reuse existing components. Like ImageMacro.

If the attachment is virtual, it is just a link somewhere isn't it?
And ImageMacro supports regular http/https/ftp schemes or really
anything supported by your Trac (now a configurable whitelist due to
security).

Now, what would be useful is if Trac could resolve InterMapTxt
definitions for things like ImageMacro. That way you could just define
a mapping:

images      http://server/files/$1.jpg

...and use this mapping in the image macro without worrying about
where it is hosted - if files move, then just update the definition:

[[Image(images:myfile)]]

You won't of course get some of the other attachment features like
permissions, listing++, but as Steffen says this can quickly become
quite complex to support.

My suggestion would be a Trac enhancement -> ticket + patch
welcome :-)


:::simon
https://www.coderesort.com

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to