on-click behavior of parent page with no actual content

Having trouble installing Oxygen? Got a bug to report? Post it all here.
galanohan
Posts: 115
Joined: Mon Jul 10, 2023 11:49 am

on-click behavior of parent page with no actual content

Post by galanohan »

Hi,

My colleagues asked me if I can customize the on-click behavior of certain parent node in webhelp:
image.png
image.png (34.76 KiB) Viewed 327 times
For example, some certain parent node exists as a container for children topics only, but they don't have any meaning. The ideal on-click behavior for such parent node / page is that users can click to expand its children topics list but no new page for empty topic (for example, page for A)
image.png
image.png (19.77 KiB) Viewed 327 times
Is there any parameter I can configure in the webhelp transformation scenario?

Thanks!
Regards,
Galano
marius
Posts: 39
Joined: Thu Mar 05, 2009 11:44 am

Re: on-click behavior of parent page with no actual content

Post by marius »

Hi,
You should use the topichead element in the main ditamap to group certain topics, something like this:

Code: Select all

<map>
    <title>Home</title>
    <topicref href="getting_started.dita">
        <topicref href="step1.dita"/>
        <topicref href="step2.dita"/>
    </topicref>
    <topicref href="function_references.dita">
        <topicref href="functions.dita"/>
        <topichead navtitle="A">
            <topicref href="abss.dita"/>
            <topicref href="acf.dita"/>
            <topicref href="acos.dita"/>
            <topicref href="add.dita"/>
        </topichead>
    </topicref>
</map>
Regards,
Marius
Marius Ciolacu
Syncro Soft / Oxygen XML
galanohan
Posts: 115
Joined: Mon Jul 10, 2023 11:49 am

Re: on-click behavior of parent page with no actual content

Post by galanohan »

That works perfectly! Thank you!
Post Reply