-
<%
nBlocLevel := 0;
aTopicList := HndTopicsEx.GetTopicListGenerated(True, False);
for nCurTopic := 0 to length(aTopicList) - 1 do
begin
HndGeneratorInfo.CurrentTopic := aTopicList[nCurTopic].id;
nTopicKind := aTopicList[nCurTopic].Kind;
nCurTopicLevel := HndTopics.GetTopicLevel(HndGeneratorInfo.CurrentTopic);
nCurTopicChildrenCnt := HndTopicsEx.GetTopicDirectChildrenCountGenerated(HndGeneratorInfo.CurrentTopic, True);
// Topic URL
if nTopicKind = 2 then sTopicUrl := HndTopics.GetTopicUrlLink(HndGeneratorInfo.CurrentTopic) // Link to URL
else if nTopicKind = 1 then sTopicUrl := '#" onclick="return false;' // Empty
else sTopicUrl := format('%s.html', [aTopicList[nCurTopic].HelpId]); // Normal topic
// Close the previous topics
if ((nCurTopic > 0) and (nCurTopicLevel < HndTopics.GetTopicLevel(aTopicList[nCurTopic - 1].id))) then
begin
nDif := HndTopics.GetTopicLevel(aTopicList[nCurTopic - 1].id) - nCurTopicLevel;
for nClose := 0 to nDif - 1 do
begin
print('
<% print(HTMLEncode(aTopicList[nCurTopic].caption)); %>
- ');
nBlocLevel := nBlocLevel + 1;
end
else begin
print('