Huw
2005-Aug-23 08:08 UTC
[Instiki] Another export question - Including the linked from details in html exports
Hi all Just wanted to know if it is possible [maybe a patch exists etc.] to include the "Linked From" details in html exports so that a static web built from Instiki export can benefit from this feature. Thanks Huw
Derek Gulbranson
2005-Aug-23 14:55 UTC
[Instiki] Another export question - Including the linked from details in html exports
On Aug 23, 2005, at 5:14 AM, Huw wrote:> Just wanted to know if it is possible [maybe a patch exists etc.] to > include the "Linked From" details in html exports so that a static web > built from Instiki export can benefit from this feature.the template app/views/wiki/print.rhtml is what is used for HTML export. If you copy the bit from app/views/wiki/page.rhtml (line 86) that adds the linked to info, it should work. so add this to app/views/wiki/print.rhtml <% unless @page.linked_from.empty? %> <small> | Linked from: <%= @page.linked_from.collect { |referring_page| link_to_existing_page referring_page }.join(", ") %> </small> <% end %> -derek
Huw
2005-Aug-23 15:38 UTC
[Instiki] Another export question - Including the linked from details in html exports
your a star, thanks. I shall go try this in the next hour or so Many many thanks H On 8/23/05, Derek Gulbranson <derek@derekgulbranson.com> wrote:> On Aug 23, 2005, at 5:14 AM, Huw wrote: > > Just wanted to know if it is possible [maybe a patch exists etc.] to > > include the "Linked From" details in html exports so that a static web > > built from Instiki export can benefit from this feature. > > the template app/views/wiki/print.rhtml is what is used for HTML > export. If you copy the bit from app/views/wiki/page.rhtml (line 86) > that adds the linked to info, it should work. > > so add this to app/views/wiki/print.rhtml > > <% unless @page.linked_from.empty? %> > <small> > | Linked from: > <%= @page.linked_from.collect { |referring_page| > link_to_existing_page referring_page > }.join(", ") > %> > </small> > <% end %> > > -derek >