Multiple outputs with different tiles in start page

Post here questions and problems related to editing and publishing DITA content.
jrehahn
Posts: 6
Joined: Fri Aug 19, 2022 10:53 am

Multiple outputs with different tiles in start page

Post by jrehahn »

Hello,
I want to generate multiple different outputs from my main map, but with different top level topics, depending on the output. Imagine the following:

Code: Select all

main-map.ditamap
	product_1.dita
		product_1.ditamap
	product_2.dita
		product_2.ditamap
	product_3.dita
		product_3.ditamap
For building the main map, the output would have these tiles (currently implemented):

Code: Select all

- product_1.dita
- product_2.dita
- product_3.dita
Now, I also want to generate product-only outputs where the top level tiles need to be the top level topics of the product maps:

Code: Select all

main-map.ditamap
	product_1.dita
		product_1.ditamap
			product_1.dita
			topic_a.dita
			topic_b.dita
			topic_c.dita
	product_2.dita
		product_2.ditamap
	product_3.dita
		product_3.ditamap

If I build the output for product one, the home page needs to have these tiles:

Code: Select all

- product_1.dita
- topic_a.dita
- topic_b.dita
- topic_c.dita
You'll notice that I have used product_1.dita in two places (nested): I tried using profiling to exclude the product_1.dita topic, respectively (product output vs. main-master output), but the profiling attributes inherit.
Using topicheads resolves in only the one (top level) tile.

Is there another way of configuring this?

Thanks!
Josie
julien_lacour
Posts: 665
Joined: Wed Oct 16, 2019 3:47 pm

Re: Multiple outputs with different tiles in start page

Post by julien_lacour »

Hello Josie,

Which kind of output would you like to generata? PDF/WebHelp/HTML?
Could you also indicate on which version of Oxygen you are running these transformations?

Regards,
Julien
jrehahn
Posts: 6
Joined: Fri Aug 19, 2022 10:53 am

Re: Multiple outputs with different tiles in start page

Post by jrehahn »

Hello Julien,
We are building Webhelp responsive output and using Oxygen 27.
Thanks and best regards,
Josie
julien_lacour
Posts: 665
Joined: Wed Oct 16, 2019 3:47 pm

Re: Multiple outputs with different tiles in start page

Post by julien_lacour »

Hello Josie,

The thing is, with this structure:

Code: Select all

main-map.ditamap
	product_1.dita
		product_1.ditamap
			product_1.dita
You will obtain the tiles with Product 1 | Product 2 | Product 3 but clicking on Product 1 will result into this publication TOC:

Code: Select all

    Product 1
        Product 1
        Topic A
        Topic B
        Topic C
Which I don't think you want, since the Product 1 topic is duplicated in the output and is its own child.

Why not simply using <topichead> as you mentioned and transform directly product_1.ditamap when you need the WebHelp output for one product? Instead of using profiling attributes and filter them.

Regards,
Julien
Post Reply