Modify

Opened 17 years ago

Closed 12 years ago

#959 closed enhancement (wontfix)

combine macro

Reported by: anonymous Owned by: Noah Kantrowitz
Priority: normal Component: CombineWikiPlugin
Severity: normal Keywords:
Cc: Sagrer Trac Release: 0.10

Description

Great plugin, just what we need to generate off-line documentation required by our customer. It would be even greater if there was a macro that would take a number of pages as an argument. The macro would create a link to genereate and download the resulting pdf.

Attachments (0)

Change History (8)

comment:1 Changed 17 years ago by Noah Kantrowitz

I don't think I macro would be the correct way to implement this. I do plan to add a system to save page sets so you can quickly regenerate the same documents later if needed. Would that address your needs?

comment:2 Changed 17 years ago by stephane

Me too :-)

I would like to have a macro.

Imagine I have the following wiki pages:

  • Book: contains a link to BookAsPdf and links to BookChapter*
  • !BookChapter1: contains chapter1
  • !BookChatter2: contains chapter2
  • BookAsPdf: contains only the macro

On the Book page I would create a link like [wiki:BookAsPdf Get PDF version]

And the BookAsPdf page would contain:

[[CombineToPdf("My book",BookChapter1,BookChapter2)]]

So the user klicks a link, and get the combination which I want.

(Or the macro could present himself a link?)

comment:3 Changed 17 years ago by Sagrer

what about this way? :

  1. Add any mark to all pages, which must be combined to a single document. It may be something in a page's text, or may be tags.
  2. Plugin searchs this marks in all wiki's pages - when user enter into admin->CombineWiki - he see a list of all documents (by marks names) which may be created.
  3. If user clicks in admin->CombineWiki to create a document - all wiki pages, which has this document's marks - added into document, also all links between pages, which was included into a document - send user to a local part of a created document - not to internet wiki pages.
  4. If generating a html - what about creating not one page - but all pages, which were included, connected by local links + index.html - and all this stored in a *.zip archive, for example?

comment:4 Changed 17 years ago by Sagrer

Cc: Sagrer added; anonymous removed

comment:5 in reply to:  3 Changed 16 years ago by anonymous

The problem with adding marks to pages to indicate pages to be combined, is that the order of the pages is not stored.

What about having 'special' Wiki pages that contain a list of links to other pages. The plugin can then fetch all the pages pointed to and use them to generate the pdf. This would make it really easy to remember multiple sets of pages, and edit the pages included. You could also have special commands in the page to set specific options etc. Maybe you could also allow links to non-Wiki web pages and include them in the pdf.

Just an idea...

comment:6 Changed 16 years ago by anonymous

is there still interest in this? We have modified/combined the NavToc and combinewikiplugin. Now you can create a Wiki page with a list of wikipages - like an index:

  • chapter 1
    • page 1
    • page 2
  • chapter 2
    • page 3
    • page 4

and then you can point combinewiki to that page an it parses all the links on that page an puts the pages into one pdf file...

comment:7 Changed 16 years ago by Sagrer

yes, interest is exists :). Where to download?

comment:8 Changed 12 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Deprecated: Please try the TracWikiToPdfPlugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.