We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11190
    • 109 Posts
    Hello, all. Warning - more newbiness wink

    I have several large OpenOffice documents that I wish to post and then maintain on-line via MODx. I would like to make three versions available, a modular html version, a monolithic html version and a downloadable pdf. I would prefer to not have to maintain three versions of the same document. What is the best way to do this?

    I am guessing that I would put all the small "modules" into chunks. I would then create a container document and create a document for every module underneath it. Each module page would have Next, Previous and contents tags as well as the chunk for each module. I could then use Wayfinder in the container document to create an automated table of contents with hyperlinks based upon the document hierarchy underneath the container page. That gives me the modular version. I suppose I can make the Next,Content and Previous labels part of the template but am stuck creating each link for Next,Content and Previous labels manually. Is there an easier, more automated way?

    How do I do the long document? I could create a single document with a manually created table of contents at the top, all of the chunks underneath with an anchor for each chunk. The table of contents would then link to each anchor. That not only sounds like a horrific amount of work to create but also difficult to maintain. If I forget to manually add the chunk to the monolithic document, the monolithic and modular documents will go out of sync. Is there a better way?

    Finally, is there any good way to then convert the monolithic document into a downloadable PDF? I noticed some earlier threads with no definite conclusions and some on-line products that will do this. Does anyone have it running? Thanks - John
      http://www.spiritualoutreach.com
      Making Christianity intelligible to secular society
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can use Ditto to aggregate the individual pages into one page.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 4707
        • 73 Posts
        IMHO, I’d create one "container" document, for each ooo document, having several documents, one for each page/module of the ooo document. No need to put the content in chunks. Wayfinder is fine for the ToC. PrevJumpNext can be used for the Next,Content and Previous links.

        As sottwell said, use Ditto to "build" the long document. I never have used the Page TOC Generator before, but it should be able to create your ToC automatically.

        No idea about the PDF output.
          • 11190
          • 109 Posts
          Thanks very much. As I was going to bed last night, it struck me that I could use Ditto for the long document but wasn’t sure how I’d hack Wayfinder and Ditto together for the table of contents. The TOC plugin looks like it is just what I need if it will play with Ditto. I was using Chunks because I thought I would have to reuse them for the long document. With Ditto, that should be unnecessary. I’ll have a look at PrevJumpNext and see if it can handle a hierarchical document structure. It looks easier than I first thought. Thanks again for everyone’s help - both a great product and a great community - John
            http://www.spiritualoutreach.com
            Making Christianity intelligible to secular society