I really like the idea of layering content with twisties for online outputs, but when it comes to PDF output, I'm struggling with the best way to deal with them. For example, in my PDF, I don't want a button that says "Show All." I came up with the following code:
-----------------------------------------------------
<!--Begin Online Output Section--->
<?rh-cbt_start condition="IncludeInOnlineOutput" ?>
<p class="Body-Text">
<img src="./Graphics/btnshowall.gif" onclick="ShowAll(this)" alt="" id="showall" name="showall" style="border: none;" width="73" height="21" border="1" />
</p>
<p class="Body-Text">
<?rh-dropspot_start class="dropspot" href="javascript:TextPopup(this)" id="a10" dataid="POPUP10" ?>
<span class="HoverIntro">Add Information</span> </p>
<?rh-dropspot_end ?>
<?rh-droptext_start class="droptext" id="POPUP10" style="display: none;" ?>
<?rh-placeholder type="snippet" ref="Procedure_01" ?>
<?rh-droptext_end ?>
<p class="Body-Text">
<?rh-dropspot_start class="dropspot" href="javascript:TextPopup(this)" id="a20" dataid="POPUP20" ?>
<span class="HoverIntro">Change Information</span> </p>
<?rh-dropspot_end ?>
<?rh-droptext_start class="droptext" id="POPUP20" style="display: none;" ?>
<?rh-placeholder type="snippet" ref="Procedure_02" ?>
<?rh-droptext_end ?>
<p class="Body-Text">
<?rh-dropspot_start class="dropspot" href="javascript:TextPopup(this)" id="a30" dataid="POPUP30" ?>
<span class="HoverIntro">Delete Information</span></p>
<?rh-dropspot_end ?>
<?rh-droptext_start class="droptext" id="POPUP30" style="display: none;" ?>
<?rh-placeholder type="snippet" ref="Procedure_03" ?>
<?rh-droptext_end ?>
<?rh-cbt_end ?>
<!--End Online Output Section--->
<!--Begin Print Output Section--->
<?rh-cbt_start condition="IncludeInPrintOutput" ?>
<h3>Add Information</h3>
<?rh-placeholder type="snippet" ref="Procedure_01" ?>
<h3>Change Information</h3>
<?rh-placeholder type="snippet" ref="Procedure_02" ?>
<h3>Delete Information</h3>
<?rh-placeholder type="snippet" ref="Procedure_03" ?>
<?rh-cbt_end ?>
<!--End Print Output Section--->
-------------------------------------------------------------------
I am uncomfortable with having the text that is used to intro the procedure twice - once with the span class "HoverIntro" for online output and with h3 tags for PDF.
I considered coding the snippet like this:
-------------------------------------------------------------------
[This is code from Procedure_01 snippet]
<?rh-cbt_start condition="IncludeInPrintOutput" ?>
<h3>Add Information</h3>
<?rh-cbt_end ?>
<?rh-cbt_start condition="IncludeInOnlineOutput" ?>
<span class="HoverIntro">Add Information</span>
<?rh-cbt_end ?>
[snip the rest of the snippet]
-------------------------------------------------------------------
But that doesn't give me what I want either.
Is there another approach so I can use twisties for my online deliverables and exclude them for my PDF deliverable?