The Find Answers knowledge base contains frequently asked questions organized by iService topic. The process for retrieving articles is usually by browsing lists of articles or performing a search.
Building a Topics List
When browsing articles, the first step is to select a topic to display all of its articles. The Repeat command can be used to generate this list of topics. Once the article is identified, it can be opened to view the article's details and attachments.
$repeat -topics(findanswer)$ - Creates a flat list of all topics.
$repeat -topictree(findanswer)$ - Creates a hierarchical topic tree that can be nested to show parent child relationships. To display multiple levels of the tree, combine as many $repeat commands as needed.
$repeat -topictree(findanswer)$
$value -topic(name)$
$repeat -topictree(findanswer)$
$value -topic(name)$
$endrepeat$
$endif$
$endrepeat$
Building an Article List
Based upon the topic selected, a list of available articles can be presented. Use the -articlelist parameter to display the list of articles.
$repeat -articlelist(topic) -Ptopic'nameofinputwithtopicID' -Ppagenum'1' -Pperpage'100' -Psort'DATE_REVERSE'$
$value -articlelist(subject)$
$endrepeat$
For a complete list of values that can be displayed, see the $value command.
Composing the Article
The article details are composed using the $IF command, rather than repeat (it is not a repeating list).
$if -article -Pid'nameofinputwitharticleID'$
$value -article(subject) -Pid'nameofinputwitharticleID'$
$value -article(date) -Pid'nameofinputwitharticleID'$
$value -article(question) -Pid'nameofinputwitharticleID'$
$value -article(answer) -Pid'nameofinputwitharticleID'$
$else$
No Article Found
$endif$
For a complete list of values that can be displayed, see the $value command.