Page 1 of 1

on-click behavior of parent page with no actual content

Posted: Tue Nov 28, 2023 7:09 am
by galanohan
Hi,

My colleagues asked me if I can customize the on-click behavior of certain parent node in webhelp:
image.png
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
Is there any parameter I can configure in the webhelp transformation scenario?

Thanks!
Regards,
Galano

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

Posted: Wed Nov 29, 2023 12:43 pm
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

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

Posted: Wed Nov 29, 2023 2:23 pm
by galanohan
That works perfectly! Thank you!