#3567 closed enhancement (fixed)
Link from Images to wikipages
| Reported by: | anonymous | Owned by: | Christian Boos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | wiki system | Version: | 0.9.6 |
| Severity: | minor | Keywords: | image macro |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
I want to link from an image, that is attached in a wikipage, and displayed at this wikipage to another wiki page.
WikipageOne: people (There are some images from persons) ⇒ If you click on an image from one person i want to see the special page from this person.
Is their any option in the WikiFormatting or any Macro for that?
Attachments (0)
Change History (7)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
comment:3 by , 19 years ago
| Component: | general → wiki |
|---|---|
| Keywords: | image macro added |
| Milestone: | → 0.11 |
See also this comment in #2048, as the above trick is no longer working in 0.11…
So for solving the original issue (Link from Images to wikipages), adding a link=<target> argument to the Image macro seems to be a good solution (where <target> is an arbitrary TracLinks).
comment:5 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
| Type: | task → enhancement |
Implemented in r4797.
comment:7 by , 18 years ago
Actually it is. My 0.11dev Image macro prints out these new/changed lines:
link=some TracLinks...replaces the link to the image source by the one specified using a TracLinks. If no value is specified, the link is simply removed.nolinkmeans without link to image source (deprecated, use link=)
You won't see this on the main Trac site docs as it is still running 0.10.x. - with an old version of Image macro.



You could extend the
[[Image]]macro (see WikiMacros).Or as a hack, either of these should work:
{{{ #!html <a href="http://www.python.org/"> }}} [[Image(source:trunk/htdocs/python.png, nolink)]] {{{ #!html </a> }}}will render as:{{{ #!html <a href="http://www.python.org/"> <img src="/browser/trunk/htdocs/python.png?format=raw" alt="source:trunk/htdocs/python.png" title="source:trunk/htdocs/python.png" /> </a> }}}Which renders as: