← Back to team overview

zim-wiki team mailing list archive

Re: Recursive print/export of sub-pages (determined by sub-links)

 

On Fri, Aug 10, 2012 at 11:24 AM, NorfCran <norfcran@xxxxxxxxx> wrote:
> Hi everybody,
> for some time I have a strong need to print a linked hypertext document. For
> instance a structured article, which has each page nested page (+some_page)
> as a sub-heading "some_page". The only difficulty is printing or exporting
> such linked structure pages (referenced only with +relative_links).
> So far I have tried to target this issue with modified template (attached as
> Print_recursive.html) and extension of template.py with a function
> sublinks(), which returns only sub-links (attached as template.py). Example
> if such a structure is attached a report.zip
> Is there any other suggesting, how to make this possible? It would be also a
> great help for latex users, who prefer to structure and export large
> document in separate pages.
> There is attached an extraction (report.html), which illustrates this
> approach. The only limitation is that the link itself remains and than it
> creates subheading under. The solution could be separate page.body (text
> excluding title and lines before an empty line) and page.metadata (excluding
> title, but including all the lines before an empty line). Illustrated in
> report.zip under chapter "Introduction".
> Thank you for any suggestions.


I believe this is what you are looking for:
https://bugs.launchpad.net/zim/+bug/380851  "Export multiple pages to
one (html) page ".

Solution to fix this is not in modifying the template module. Instead
the exporter should already compile a document structure out of
multiple pages and send that as a single "page" to the template
module.

It is on my personal wishlist, but not sure when I can spent some time on it.

Regards,

Jaap


Follow ups

References