I'm tasked with responsibility of revamping our entire online help database so that the content is presented to our users with toggles as well we jump text. The intended goal is to have all the toggles open on page load, with the hyperlinks to jump through the topic visible to the user. We'd also like to have an Expand All/Collapse All link on the page for the users to have the option to simply use the jump text through the topic, or collapse all and use individual toggles to expand the desired content. Each topic contains a minimum of six (6) toggles.
We're coming across an issue that has already been described in this thread: i have an Expand All toggle controlling each of individually controlled toggles, resulting in confusing performance on the user end. I should state that I have no formal training in HTML, let alone CSS, or any other light coding training that may be required to properly set this up, so I may not have explained everything correctly, or I may just be doing something wrong. But I'm a quick study and interested in anything that would make this feature work properly. Any help anyone could offer would be greatly appreciated.
Maybe a sample of the code I am using could help:
Code: Select all
<body onLoad="openTogglers()">
<MadCap:breadcrumbsProxy class="H1" style="font-size: 9pt;" />
<h1><a name="top"></a>Sample Topic with Toggles</h1>
<p>This is the introductory paragraph. It provides a general overview of the topic...</p>
<table style="width: 97%;border-collapse: collapse;border-left-style: none;border-left-width: 0px;border-right-style: none;border-right-width: 0px;border-top-style: none;border-top-width: 0px;border-bottom-style: none;border-bottom-width: 0px;">
<col />
<col />
<tbody>
<tr>
<td>
<h6>
<MadCap:toggler targets="tAll">[Collapse All/Expand All]</MadCap:toggler>
</h6>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><span MadCap:targetName="tAll"><ul style="list-style-type: square;"><li style="text-align: left;"><a href="#Editing">Editing Sample Topic</a></li><li style="text-align: left;"><a href="#FAQs">FAQs: Sample Topic</a></li><li style="text-align: left;"><a href="#Best">Best Practices: Sample Topic</a></li><li style="text-align: left;"><a href="#State">State Reference Materials</a></li><li style="text-align: left;"><a href="#Periodic">Periodic Activities: Sample Topic</a></li><li style="text-align: left;"><a href="#Related">Related Sections/Screens</a></li></ul></span>
</td>
<td> </td>
</tr>
</tbody>
</table>
<h5><a name="Editing"></a>
<MadCap:toggler targets="t1">Editing Sample Topic - Software Mechanics</MadCap:toggler>
</h5><span MadCap:targetName="tAll"><span MadCap:targetName="t1"><h6><a href="#top">[back to top]</a></h6><p>Sample text for Editing the Sample Topic...</p><h6><a href="#top">[back to top]</a></h6></span></span>
<h5><a name="FAQs"></a>
<MadCap:toggler targets="t2">FAQs: Sample Topic</MadCap:toggler>
</h5><span MadCap:targetName="tAll"><span MadCap:targetName="t2"><p style="font-style: italic;">Question: Why am I required to enter a rationale, for this sample topic?</p><p>Answer: sample topic FAQ answer...</p><h6><a href="#top">[back to top]</a></h6></span></span>
<h5><a name="Best"></a>
<MadCap:toggler targets="t3">Best Practices: Sample Topic</MadCap:toggler>
</h5><span MadCap:targetName="tAll"><span MadCap:targetName="t3"><p style="font-size: 10pt;font-weight: bold;">Sample Topic Best Practices Documentation...</p><h6><a href="#top">[back to top]</a></h6></span></span>
<h5><a name="State"></a>
<MadCap:toggler targets="t4">State Reference Materials</MadCap:toggler>
</h5><span MadCap:targetName="tAll"><span MadCap:targetName="t4"><p style="font-size: 10pt;font-weight: bold;">Sample topic State Reference Materials</p><h6><a href="#top">[back to top]</a></h6></span></span>
<h5><a name="Periodic"></a>
<MadCap:toggler targets="t5">Periodic Activities: Sample Topic</MadCap:toggler>
</h5><span MadCap:targetName="tAll"><span MadCap:targetName="t5"><ul style="list-style-type: square;"><li>null...</li></ul><h6><a href="#top">[back to top]</a></h6></span></span>
<h5><a name="Related"></a>
<MadCap:toggler targets="t6">Related Sections/Screens</MadCap:toggler>
</h5><span MadCap:targetName="tAll"><span MadCap:targetName="t6"><ul style="list-style-type: square;"><li>Related Sample Topic 1...</li><li>Related Sample Topic 2</li></ul><h6><a href="#top">[back to top]</a></h6></span></span>
<MadCap:breadcrumbsProxy class="H1" style="font-size: 9pt;" />
<script>
function openTogglers() {
///*<![CDATA[*/
for (i=0;i<document.links.length;i++) {
if (document.links[i].className == 'MCToggler') document.links[i].click();
} } ///*]]>*/</script>
</body>