Applying Cascading Style Sheets and Custom Java Script to your KB Articles

THIS ARTICLE APPLIES TO:

Knowledgebase all versions


PROCESS:

 

 

There are several ways to customize your Knowledgebase articles. This functionality allows you to customize the look and feel for your Knowledgebase articles to match your existing web sites.

Method 1:
If you have existing CSS or JS files for your website, or can upload them to an accessible web server, this can be the easiest way to include these files.

  1. Within an article, use the absolute link to your CSS file. Make sure to use the full path.
  2. For example, <LINK REL="stylesheet" HREF="http://www.yourdomain.com/css/main.css">

Method 2:
Article templates are powerful tools which can also include a style sheet or java script section.

  1. Create an article template as documented in the user manual. Add a section for CSS, Javascript or both.
  2. Within the appropriate section of that template, copy and paste the style sheet or java script content.
  3. Anytime an article is created using the template, the resulting html article will include the entire style sheet and/or java script attributes.

Method 3:
Another option is to add the CSS file to the template. You can then reference the CSS file from any HTML article by referencing the Attachment ID.

  1. Upload the CSS file into the attachment library. Make note of the attachment ID for the file.
  2. When editing the article, place this link in the head section of your html files. <A HREF="/utility/getfile.asp?rid=ATTACHMENT ID" REL=stylesheet>. Make sure to replace ATTACHMENT ID with the appropriate number.

AFFECTED SYSTEMS & USERS:

Knowledgebase web administrators

ADDITIONAL INFORMATION:

Note: The troubleshooting of custom java script and custom cascading style sheets will not be addressed by Moxiesoft support Personnel.  If your issue is determined to be related to your custom code you will be referred to your sales account manager to discuss and engage our Professional Services Team. For more information about Webfile manager see article 3697 

Also attached to this KB article is the Portal Customization Guide, which will assist you in performing in-depth style features and adjustments to your Portal Website.
 

ESCALATION PROCEDURE:

If you have difficulty completing this procedure please call +1-877-373-7848 option 2 or email us at cimsupport@moxiesoft.com.