Stream: conformance
Topic: IG - Concatenate all pages
Jose Costa Teixeira (Nov 01 2017 at 20:14):
Hi. Is it possible to get a page that is the concatenation of all pages in an IG? Like if I have an intro page, an examples page... that i would get another single HTML page that is just a concatenation of all the other pages?
Lloyd McKenzie (Nov 01 2017 at 21:26):
You could probably do some sort of transform, but handling the ids so they'd all be unique and getting references to resolve would not make it a pretty transform. It's certainly not a capability that's available in any of the IG tooling I'm aware of...
Grahame Grieve (Nov 01 2017 at 21:45):
you can build your IG like that in the first place
Grahame Grieve (Nov 01 2017 at 21:46):
and maybe there's some kind of html generic tool that does this...
Eric Haas (Nov 01 2017 at 22:37):
yes create html page and include all the fragments and pages in it using liquid and probably a lot of front matter.
Jose Costa Teixeira (Nov 04 2017 at 19:34):
Is there a liquid way to make a page that simply contains includes other pages?
Something like pageN which contains {{page1}} {{page2}}..{{pagen-1}}
Michel Rutten (Nov 06 2017 at 09:20):
Hi @Jose Costa Teixeira, you could write a simple script to traverse the ImplementationGuide.pages element hierarchy, follow the page.source uri and concatenate the contents of the referenced pages. Alternatively, you could implement this as an SPA, loading child pages on demand, e.g. when the user scrolls down.
Jose Costa Teixeira (Nov 06 2017 at 13:13):
Thanks, I was hoping for smth like {{all_other_pages_except_this_one}} or {{all_pages_in_category_main}}
Last updated: Apr 12 2022 at 19:14 UTC