Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div><strong>Table of Contents<a id="TOC" name="TOC"></a></strong></div>
- <ul>
- <li><a href="#BoxExamples:2">Box Examples:</a>
- <ul>
- <li>Expandable via Click on Header</li>
- <li>Expandable via Button</li>
- <li>Expandable via Check Box</li>
- </ul>
- </li>
- <li><a href="#Howtocopyinto6">How to Copy Into Your Article</a></li>
- <li><a href="#Multipleboxeswithinthe7">Multiple Boxes Within the Same Article</a></li>
- <li><a href="#Default:ExpandedorCollapsed8">Default: Expanded or Collapsed</a></li>
- <li><a href="#Issues">Issues Experienced</a></li>
- <li><a href="#Reference9">Reference</a>
- <ul>
- <li>Button Size/Color</li>
- <li>Panel Colors</li>
- <li>HTML Allowed in TDX</li>
- </ul>
- </li>
- </ul>
- <h2>Box Examples:<a id="BoxExamples:2" name="BoxExamples:2"></a></h2>
- <div class="panel panel-primary">
- <div class="panel-heading" data-target=".IDClickHeader" data-toggle="collapse"><strong>Expandable Via Click on Header<label class="pull-right btn fa fa-expand fa-2x style=" style="color:white"> </label></strong></div>
- <div aria-expanded="false" class="panel panel-body IDClickHeader collapse" style="height: 31.9886px;">
- <p> </p>
- <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">
- <p><br />
- <div class="panel panel-primary"><br />
- <div class="panel-heading" data-target=".IDClickHeader" data-toggle="collapse"><strong>Panel Title<label class="pull-right btn fa fa-expand fa-2x style=" style="color:white"> </label></strong></div></p>
- <p><div aria-expanded="false" class="panel panel-body IDClickHeader collapse" style="height: 31.9886px;"><br />
- <p>Content goes here</p><br />
- </div><br />
- </div></p>
- <p> </p>
- </div>
- </div>
- </div>
- <p><!------------------------------------------------------Example Button------------------------------------------------------></p>
- <div class="panel panel-primary">
- <div class="panel-heading"><strong>Expandable via Button</strong><label class="pull-right gutter-bottom-none " style="font-weight: normal"><input checked="unchecked" class="btn btn-default" data-target=".IDFirstProcess" data-toggle="collapse" type="button" value=" ◄ Show/Hide " /></label></div>
- <div aria-expanded="false" class="panel panel-body IDFirstProcess collapse" style="height: 31.9886px;">
- <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">
- <div>
- <p><br />
- <div class="panel panel-primary"></p>
- <p><br />
- <div class="panel-heading"><strong> HEADING HERE </strong><label class="pull-right gutter-bottom-none " style="font-weight: normal"><input checked="unchecked" class="btn btn-default " data-target=".IDFirstProcess" data-toggle="collapse" type="button" value=" ◄ Show/Hide " /></label></div></p>
- <p><div aria-expanded="true" class="panel panel-body IDFirstProcess collapse" style=""></p>
- <p><br />
- <p class="gutter-top-none">BODY HERE</p><br />
- </div><br />
- </div></p>
- </div>
- </div>
- <p> </p>
- </div>
- </div>
- <p><!------------------------------------------------------Example check box------------------------------------------------------></p>
- <div class="panel panel-warning">
- <div class="panel-heading"><strong>Expandable Via Check Box</strong><label class="pull-right gutter-bottom-none checkbox-inline text-info" style="font-weight: normal"><input checked="checked" data-target=".IDFirstCheckBox" data-toggle="collapse" type="checkbox" />Hide</label></div>
- <div aria-expanded="false" class="panel panel-body IDFirstCheckBox collapse" style="height: 31.9886px;">
- <p class="gutter-top-none"> </p>
- <div class="gutter-top-none" style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">
- <p> </p>
- <p><div class="panel panel-warning"></p>
- <p><br />
- <div class="panel-heading"><strong>Expandable Via Check Box</strong><label class="pull-right gutter-bottom-none checkbox-inline text-info" style="font-weight: normal"><input checked="checked" data-target=".IDFirstCheckBox" data-toggle="collapse" type="checkbox" />Hide</label></div></p>
- <p><div aria-expanded="true" class="panel panel-body IDFirstCheckBox collapse in" style=""><br />
- <p class="gutter-top-none">Table body</p></p>
- <p><p class="gutter-top-none">&nbsp;</p><br />
- </div><br />
- </div><br />
- </p>
- </div>
- <p class="gutter-top-none"> </p>
- </div>
- </div>
- <p> </p>
- <p> </p>
- <p><a href="#TOC">Return to the Article Table of Contents above</a></p>
- <p> </p>
- <h2>How to Copy Into Your Article<a id="Howtocopyinto6" name="Howtocopyinto6"></a></h2>
- <ol>
- <li>Edit your article</li>
- <li>Set your mouse cursor where you wish to enter the box</li>
- <li>Select templates from the KB editor menu</li>
- <li>From the Templates menu, select Collapsible Content</li>
- <li>Remove any Panels you do not want, remove the info text above the panels.</li>
- <li>Edit the Heading/Title and Body of the box to contain the desired content. </li>
- </ol>
- <p style="margin-left: 40px;"><img alt="" src="https://skagit.teamdynamix.com/TDPortal/Images/Viewer?fileName=4bce3bcf-d80c-41fb-9829-d720f14858da.png" style="border-width: 1px; border-style: solid; width: 550px; height: 240px;" /></p>
- <p> </p>
- <p> </p>
- <p> </p>
- <p><a href="#TOC">Return to the Article Table of Contents above</a></p>
- <p> </p>
- <h2>Multiple Boxes Within the Same Article<a id="Multipleboxeswithinthe7" name="Multipleboxeswithinthe7"></a></h2>
- <div>
- <p>The boxes are hard coded to data-target ID, so if you want to use more than one in the same KB article you will have to change the ID for each box.</p>
- <p>Failure to do so will prevent subsequent boxes from being expanded/collapsed. </p>
- <ul>
- <li>
- <div>Change the <span style="background-color:#afeeee;">Data-Target Tag ID</span> to be unique across all boxes.</div>
- </li>
- <li>
- <div>Change the <span style="background-color:#dda0dd;">Class Panel Panel-Body Tag ID</span> to match that box's Data-Target ID.</div>
- </li>
- <li>
- <div>Note: The ID's are case sensitive and must match case between both tags. </div>
- <ul>
- <li>
- <div>And, for some reason I keep finding the case incorrect even though I'm sure that I typed it correct. So, if a box is not expanding/collapsing, check the case... Because TDX may be changing the case?</div>
- </li>
- </ul>
- </li>
- <li>
- <div>Example:</div>
- <ul>
- <li>
- <div>First Box:</div>
- <ul>
- <li>
- <div><div class="panel-heading"><strong>HEADING HERE </strong><label class="pull-right gutter-bottom-none checkbox-inline" style="font-weight: normal"><input checked="checked" <span style="background-color:#afeeee;">data-target=".ID</span><span style="background-color:#ffff00;">FirstProcess</span>" data-toggle="collapse" type="checkbox" />Hide</label></div></div>
- </li>
- <li>
- <div><div aria-expanded="false" <span style="background-color:#dda0dd;">class="panel panel-body ID</span><span style="background-color:#ffff00;">FirstProcess</span><span style="background-color:#ffff00;"> </span>collapse" style="height: 32px;"></div>
- </li>
- </ul>
- </li>
- <li>
- <div>Second Box:</div>
- <ul>
- <li>
- <div><div class="panel-heading"><strong>HEADING HERE </strong><label class="pull-right gutter-bottom-none checkbox-inline" style="font-weight: normal"><input checked="checked" <span style="background-color:#afeeee;">data-target=".ID</span><span style="background-color:#ffff00;">SecondProcess</span>" data-toggle="collapse" type="checkbox" />Hide</label></div></div>
- </li>
- <li>
- <div><div aria-expanded="false" <span style="background-color:#dda0dd;">class="panel panel-body ID</span><span style="background-color:#ffff00;">SecondProcess</span><span style="background-color:#ffff00;"> </span>collapse" style="height: 32px;"></div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- <div> </div>
- <p> </p>
- <p><a href="#TOC">Return to the Article Table of Contents above</a></p>
- <p> </p>
- <h2>Default: Expanded or Collapsed<a id="Default:ExpandedorCollapsed8" name="Default:ExpandedorCollapsed8"></a></h2>
- <div>
- <p>TDX remembers the last state of the box, making that the default for the article: If you want the box collapsed by default, then collapse it in the editor before submitting/approving it.</p>
- <p> </p>
- <p>The actual HTML code uses > in < after the collapse in panel panel-body to designate an expanded by default panel: <div aria-expanded="true" class="panel panel-body IDFirstProcess collapse <span style="background-color:#ffff00;">in</span>" style="">. But that matters little for TDX; just remember that the box will remember the last state it was in when you updated or submitted the article.</p>
- <p> </p>
- </div>
- <p> </p>
- <p><a href="#TOC">Return to the Article Table of Contents above</a></p>
- <p> </p>
- <h2>Issues Experienced<a id="Issues" name="Issues"></a></h2>
- <p>The TDX HTML parser is very aggressive, which lends to the source code becoming corrupt from time to time. </p>
- <ul>
- <li>Button raised or lowered from the example neutral spot above.
- <ul>
- <li>Something has gone wrong with the line of code that the button info is programmed on.</li>
- <li>Sometimes this will exhibit in the source where that line, while set on one line in the above examples, is split into two lines.</li>
- <li>Correct the line so it is referenced like the examples above</li>
- <li>or rebuild the box from the template and copy the content to the new box.</li>
- </ul>
- </li>
- <li>Content initially entered into the box shows outside the box and overlaid on top of other content.
- <ul>
- <li>Source is corrupt: add a new box from template, copy content to new box, delete the broken box.</li>
- </ul>
- </li>
- </ul>
- <p> </p>
- <p><a href="#TOC">Return to the Article Table of Contents above</a></p>
- <p> </p>
- <h2>Reference<a id="Reference9" name="Reference9"></a></h2>
- <p><a href="https://www.w3schools.com/Bootstrap/bootstrap_collapse.asp">Bootstrap Collapse (w3schools.com)</a></p>
- <p><a href="https://www.w3schools.com/Bootstrap/bootstrap_panels.asp">Bootstrap Panels (w3schools.com)</a> (Change panel color)</p>
- <p><a href="https://www.w3schools.com/Bootstrap/bootstrap_buttons.asp">Bootstrap Buttons (w3schools.com)</a> (Change button color)</p>
- <p>Non breaking space used to expand button boarder > <</p>
- <p><a href="https://www.alt-codes.net/arrow_alt_codes.php">Arrow Symbols: Left, Right, Up and Down Arrow (alt-codes.net)</a></p>
- <p><a href="https://solutions.teamdynamix.com/TDClient/1965/Portal/KB/ArticleDet?ID=48230">Article - HTML Content Allowlists (teamdynamix.com)</a></p>
- <p><a href="https://fontawesome.com/v4/icons/">Font Awesome </a></p>
- <p> </p>
- <p> </p>
- <p><a href="#TOC">Return to the Article Table of Contents above</a></p>
- <p> </p>
Add Comment
Please, Sign In to add comment