Topics Map > Documents Tab
Topics Map > Advanced HTML

KB User's Guide - Documents Tab - KB Custom Class Names

This document lists KB custom tags for your reference. If an author inadvertently uses a class name that the KB uses for custom tags (e.g. class="internal"), it will have unintended results in the KB document. The following is a reference point for all such existing classes the KnowledgeBase has to offer.

Including

In a document or News item, you may embed content from another, distinct, document or News Item.

Custom Include Classes
Custom Class Name HTML More Info
Example
kb-class-include-doc

<span class="kb-class-include-doc">12345</span>

TinyMCE Custom Plugins Guide - IncludeDoc The content of document 36746 is included below:

Lodged

The rain to the wind said,

'You push and I'll pelt.'...

~ Robert Frost

 
kb-class-include-news

<span class="kb-class-include-news">12345</span> 

The content of this News Item includes:

Frost's talent recognized.

Frost received his first Pulitzer Prize for New Hampshire in 1924.

Specific Content Restriction

In a document or news item, you may embed specific content to only be visible to one of the specific subsets below.

Content Restriction Classes
Custom Class Name HTML Code More Info and Examples

kb-class-internal-site

<span class="kb-class-internal-site"></span> 

KB Users Guide - Documents Tab - Content Restriction Tags
kb-class-external-site

<span class="kb-class-external-site"></span> 

kb-class-owner-group-site

<span class="kb-class-owner-group-site"></span> 

kb-class-owner-inst-site

<span class="kb-class-owner-inst-site"></span> 

kb-class-visible-only-to-[netid@domain.edu]

<span class="kb-class-visible-only-to-netid@domain.edu"></span>

KB User's Guide - Documents Tab - Embedding user specific content in KB documents (HTML editor only)

Time and Date stamps

Embed a specific Date/Time information into your document.

Custom Time Stamp Classes
Custom Class Name HTML Code More Info
Example
kb-class-creation-time

<span class="kb-class-creation-time"></span> 

KB User's Guide - Documents Tab - Manually Enterable KB Custom classes Use Case
kb-class-last-update-time

<span class="kb-class-last-update-time"></span> 

Use Case
kb-class-activation-time

<span class="kb-class-activation-time"></span> 

Use Case

Revision Information

Placing this code in a document will automatically indicate the email address or name of the last person to update a document and the provide the numerical value representing the number of times a document is activated.

Custom Revision Information Classes
Custom Class Name HTML Code More Info
Example
kb-class-last-updater-email

<span class="kb-class-last-updater-email"></span> 

KB User's Guide - Documents Tab - Manually Enterable KB Custom classes Use Case
ActivatorEmail

<span class="ActivatorEmail"></span> 

Use Case
ActivatorName

<span class="ActivatorName"></span> 

Use Case
LastUpdaterName 

<span class="LastUpdaterName "></span> 

Use Case
NumOfVersions

<span class="kb-class-num-of-versions"></span> 

Use Case

Other Elements

These custom classes control and style additional unique elements in the KB.

Other Element Classes
Custom Class Name HTML Code More Info
Example
To the Top

<div class="to-kb-doc-top-anchor"><a href="#">To the top</a></div>

TinyMCE Custom Plugins Guide - To Top Anchor Example
Collapsible panels

<h2 class="panel-head"</h2> <div class="panel-content"></div>

KB User's Guide - Advanced HTML - Creating Collapsing and Expanding Panels Example
ol class checklist

<br><ol class="checklist"> <li></li> </ul> 

This method of adding a checklist is being phased out. To add a new checklist in the TinyMCE editor, please use Format > Checklist.

This method will insert a list with class="tox-checklist".

Example
ul class checklist

<br><ul class="checklist"> <li></li> </ul> 

Example


Keywordsincludedoc includenews include doc include news embed internal span class external span class owner site owner institution ownersite ownerinstitution creationtime activatortime activationtime creation time activator time activation time lastupdateremail numofversions last updater email number of versions Visible only to NetID at domain restricted to fully authorized internal user to the top toggle ordered and unordered checklistDoc ID36739
OwnerLeah S.GroupKB User's Guide
Created2014-01-28 16:02:38Updated2022-12-08 16:59:37
SitesKB User's Guide
Feedback  0   0