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.

Linking

In a document or news item, you may embed a link to; another KB document, News Item or Topic.


Custom Class NameHTML CodeMore Info
Example
1linkdoc

<a href="docId:12345">12345</a>

https://kb.wisc.edu/kbGuide/page.php?id=14927#linkdocThe following is an example of a linkdoc: Poetry - Robert Frost - Lodged 
2linknews
<a href="newsId:12345">12345</a>
https://kb.wisc.edu/kbGuide/page.php?id=14927#linknewsThe following is an example of a linknews: Robert Frost - Pulitzer
3linktopic
<a href="topicId:12345">8505</a>
https://kb.wisc.edu/kbGuide/page.php?id=14927#linktopicThe following link leads to a collection of documents assigned to a specifc Topic: Sample Documents


Including


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


Custom Class NameHTMLMore Info
Example
1includedoc
<span class="kb-class-include-doc">12345</span> 
https://kb.wisc.edu/kbGuide/page.php?id=14927#includedocThe content of document 36746 is included below:

Lodged

The rain to the wind said,

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

~ Robert Frost

 
2includenews
<span class="kb-class-include-news">12345</span> 
https://kb.wisc.edu/kbGuide/page.php?id=14927#includenewsThe 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 by a one of the specific subsets below.


Custom Class NameHTML CodeMore Info and Examples
1internal

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

https://kb.wisc.edu/kbGuide/page.php?id=14927#intsite
2external

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

https://kb.wisc.edu/kbGuide/page.php?id=14927#extsite
3ownersite

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

https://kb.wisc.edu/kbGuide/page.php?id=14927#ownersite
4ownerinstitution

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

https://kb.wisc.edu/kbGuide/page.php?id=14927#ownerinstitute


Time and Date stamps


Embed a specific Date/Time information into your document.



Custom Class NameHTML CodeMore Info
Example
1CreationTime

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

https://kb.wisc.edu/kbGuide/page.php?id=36795Use Case
2LastUpdateTime

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

https://kb.wisc.edu/kbGuide/page.php?id=36795Use Case
3ActivationTime

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

https://kb.wisc.edu/kbGuide/page.php?id=36795Use Case


Identify the Last Document Activator or Updater


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 Class NameHTML CodeMore Info
Example
1LastUpdaterEmail


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

https://kb.wisc.edu/kbGuide/page.php?id=36795Use Case
2ActivatorEmail


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

https://kb.wisc.edu/kbGuide/page.php?id=36795Use Case
3ActivatorName


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

https://kb.wisc.edu/kbGuide/page.php?id=36795Use Case
4LastUpdaterName 


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

https://kb.wisc.edu/kbGuide/page.php?id=36795Use Case
2NumOfVersions

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

https://kb.wisc.edu/kbGuide/page.php?id=36795Use Case


Restricted Visibility


The "Restricted Visibility" custom class allows a block of text to be visible only to a specified user who is a fully authorized internal user.



Custom Class NameHTML CodeMore Info
Example
1Visible only to NetIDx

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

https://kb.wisc.edu/kbGuide/page.php?id=20307<span class="kb-class-visible-only-to-jsmith@univ.edu"> Content intended only for John Smith's eyes.</span>


In-document navigation


The "Restricted Visibility" custom class allows a block of text to be visible only to a specified user who is a fully authorized internal user.



Custom Class NameHTML CodeMore Info
Example
1To the Top

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

https://kb.wisc.edu/kbGuide/page.php?id=14927#totopExample
2Toggle

<ul id="togglex" class="togglex">

https://kb.wisc.edu/kbGuide/page.php?id=19085Example
3ol class checklist

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

https://kb.wisc.edu/kbGuide/page.php?id=20307Example
4ul class checklist

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

https://kb.wisc.edu/kbGuide/page.php?id=20307Example



Keywords:linkdoc linknews linktopic link doc link news link topic includedoc 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 checklist   Doc ID:36739
Owner:Teresa A.Group:KB User's Guide
Created:2014-01-28 17:02 CDTUpdated:2021-06-20 08:14 CDT
Sites:KB User's Guide
Feedback:  0   0