The /export handler and the export: link type. Requires 0.11.
--Noah
could you give me an example, please? I can't find s.th. on the website
related to export-handler or link type.
Thanks,
Gregor
Very early 0.11dev, and it has been backported to 0.10.5 (see
http://trac.edgewall.org/ticket/5295).
-- Christian
it works! Thanks... didn't think it would be so easy.
But one issue seems to remain open: My browser wants to download the
.html-file. Sure, I can open the file with e.g. firefox, but then the
url looks like file:///tmp/... Therefor, the html-file is not beeing
rendered, because of missing css-files, images, etc.
On trac.edgewall.org, there is written "This can be very useful for
displaying HTML documentation with correct stylesheets and images, in
case that has been checked in the repository." ... so it seems, the
failure is on my side.
Thanks,
-Gregor
Erik Andersson wrote:
> Hi
>
> See http://trac.edgewall.org/wiki/TracLinks#export:links
>
> Not sure though in which rev of 0.11 this was implemented.
>
> Cheers / Erik
>
> On Wed, Sep 3, 2008 at 1:03 PM, Gregor Dschung
> <gregor....@itwm.fraunhofer.de
> <mailto:gregor....@itwm.fraunhofer.de>> wrote:
>
>
> Noah Kantrowitz wrote:
> > Gregor Dschung wrote:
> >
> >> Hi,
> >>
> >> I'm in the following situation: In my repository, there are a few
> >> HTML-files. In the wiki, I want to refer to them (including
> anchors). If
> >> I follow the link , the content itself should be rendered and
> not the
> >> html source code. E.g., if I write
> >>
> >> source:html/index.html
> >>
> >> and follow the link, it will be opened in the trac-browser, but not
> >> rendered. A value behind a # will be interpreted as the
> file-version...
> >> and not used as an html-anchor.
> >>
> >> Exists a solution for my issue? E.g. sth. like this:
> >> render_source:html/index.html#start
> >>
> >>
> >
> > The /export handler and the export: link type. Requires 0.11.
> >
> > --Noah
> >
> Hi Noah,
>
> could you give me an example, please? I can't find s.th
> <http://s.th>. on the website
>
> Hi
>
> it works! Thanks... didn't think it would be so easy.
>
> But one issue seems to remain open: My browser wants to download the
> .html-file. Sure, I can open the file with e.g. firefox, but then the
> url looks like file:///tmp/... Therefor, the html-file is not beeing
> rendered, because of missing css-files, images, etc.
>
> On trac.edgewall.org, there is written "This can be very useful for
> displaying HTML documentation with correct stylesheets and images, in
> case that has been checked in the repository." ... so it seems, the
> failure is on my side.
No, this is a security concern. Allowing un-filtered HTML files to
execute in the context of the Trac site represents a security risk
(bad JavaScript, etc). You can use the "View" option to display the
file (though it will not be in the URL context of the Trac site).
--Noah
Cheers,
Gregor
--Noah