Article Merge Codes

Here are the available template merge codes for use in Settings > Style > Article Styles > HTML. Article merge codes work in categories and sub-categories too.

Template Merge Code Description Example
[article("body")] The "body" merge code will display the contents of the current category or article. See note.
[article("title")] The "title" merge code will display the category or article title.  [article("title")]
[article("toc_title")] The "toc_title" merge code will display the Table of Contents Title (if set). [article("toc_title")]
[article("pdf_download_tool")] The "pdf_download_tool" merge code will display a PDF icon that will download the contents of the current category or article when clicked. [article("pdf_download_tool")]
[article("date_created")] The "date_created" merge code will display the date and time the current category or article was created. [article("date_created")]
[article("date_modified")] The "date_modified" merge code will display the date and time the current category or article was last modified. [article("date_modified")]

Note: This merge code does not work inside articles. If it did, it would create an infinite loop of loading content inside of content. It might be fun to see, but it would break KnowledgeOwl horribly.

Homepage Merge Codes

Here are the available template merge codes for use in Settings > Style > Custom HTML > Home Page. These merge codes will only work in the knowledge base home page; they will not work inside categories or articles.

Homepage Merge Code Description Example
[homepage("title")] The "title" merge code will display whatever text you have in the Home Page Title field under Knowledge Base > Home Page. You can change title here. NA - will not work in articles
[homepage("body")] The "body" merge code will display the content inside the Home Page Body field under Knowledge Base > Home Page. You can update the content here. NA - will not work in articles

Reader Merge Codes

Here are the available template merge codes for use in any of the following locations:Test

  • Settings > Style
  • Knowledge Base > Home Page
  • Knowledge Base > Articles
  • Knowledge Base > Contact Form
Template Merge CodeDescription
[reader("username")]The "username" merge code will display the current reader's username / login.
[reader("first-name")]The "first-name" merge code will display the current reader's first name.
[reader("last-name")]The "last-name" merge code will display the current reader's last name.
[reader("full-name")]The "full-name" merge code will display the current reader's first and last name.
[reader("groups")]The "groups" merge code will display a comma-separated list of the current reader's groups.
[reader("custom1")]The "custom1" merge code will display whatever is specified in the Custom 1 field for any given reader.
[reader("custom2")]The "custom2" merge code will display whatever is specified in the Custom 2 field for any given reader.
[reader("custom3")]The "custom3" merge code will display whatever is specified in the Custom 3 field for any given reader.
[reader("custom4")]The "custom4" merge code will display whatever is specified in the Custom 4 field for any given reader.
[reader("custom5")]The "custom5" merge code will display whatever is specified in the Custom 5 field for any given reader.

HTML Template Merge Codes

Here are the available template merge codes for use in Settings > Style > Custom HTML > Body. All merge codes except "contents" will also work inside articles.

Template Merge Code Description Example
[template("project-logo")] The "project-logo" merge code will display whatever image you have uploaded under Settings > Style > Logo. You can change the logo there or by replacing the original file in your library. [template("project-logo")]
[template("project-name")] The "project-name" merge code will display the knowledge base name from Settings > Basic. [template("project-name")]
[template("contact")] The "contact" merge code will display a "Contact Us" link to your contact form if you have this feature enabled. You can enable your contact form under Knowledge Base > Contact Form. You can also customize your contact form link or add it to the table of contents. [template("contact")]
[template("searchbar")] The "searchbar" merge code will display a search bar with the text "Search for articles". [template("searchbar")]
[template("contents")] The "contents" merge code will display the contents of the current page whether that is the home page, the contact form, or an article. See note.

Note: This merge code does not work inside articles. If it did, it would create an infinite loop of loading content inside of content. It might be fun to see, but it would break KnowledgeOwl horribly.