Edgewall Software
Modify

Opened 8 years ago

Last modified 8 years ago

#12512 new enhancement

Support relative path in ImageMacro when rendering wiki page in repository browser

Reported by: hoessler@… Owned by:
Priority: normal Milestone:
Component: wiki system Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

We have a number of (trac-)wiki pages that we'd like to manage in our svn repository, but have them rendered in our trac. Unfortunately, the ImageMacro doesn't seem to support relative paths - this would be extremely useful since we have those documents in several branches, hence an absolute path is a no-go.

I've attached a patch that adds support for that so you can now refer to images like this: [[Image(../pics/Example1.png, 250px)]]

Attachments (1)

0001-Added-support-for-relative-source-links-in-image-mac.patch (1.7 KB ) - added by anonymous 8 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 by Jun Omae, 8 years ago

After the patch, a comment in the following line would be incorrect. That would be also fixed.

         elif len(parts) == 1:  # it's an attachment of the current resource

And, unit tests for the changes should be added if possible.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.