Opened 10 years ago

Closed 4 years ago

# combine macro

Reported by: Owned by: anonymous coderanger normal CombineWikiPlugin normal sagrer 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.

### comment:1 Changed 10 years ago by coderanger

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 9 years ago by stephane

Me too :-)

I would like to have a macro.

Imagine I have the following wiki pages:

• !BookChapter1: contains chapter1
• !BookChatter2: contains chapter2
• BookAsPdf: contains only the macro

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 follow-up: ↓ 5 Changed 9 years ago by sagrer

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 9 years ago by sagrer

• Cc sagrer added; anonymous removed

### comment:5 in reply to: ↑ 3 Changed 9 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 8 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:8 Changed 4 years ago by rjollos

• Resolution set to wontfix
• Status changed from new to closed