Skip to main content
Toggle navigation menu
Release Notes
Community
Submit a request
Sign in
Cato Networks Knowledge Base
Search
Cato Knowledge Base
Documentation
Tech Articles
Cato Monitoring API
Categories
<% categories.forEach(function(category, index) { %>
<%= category.name %>
<%= partial('partial-article-list-sections', { id: 'category-' + category.id, parentId: '#sidebar-navigation', sections: category.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, partial: partial }) %>
<% }); %>
<% var maxSections = 5 %>
Toggle navigation menu
<% var activeSection = sections.filter(function(section) { return section.id === activeSectionId; })[0] || null; %> <% var sectionsToDisplay = activeSection ? sections.filter(function(section) { return section['category_id'] === activeSection['category_id'] && section['parent_section_id'] === activeSection['parent_section_id']; }) : [] %> <% sectionsToDisplay.forEach(function(section, index) { %>
<%= section.name %>
<% }); %>
Categories
Categories
<% categories.forEach(function(category) { %>
<%= category.name %>
<% }); %>
<% if (sections.length) { %>
<% sections.forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-article-list-sections', { id: 'section-' + section.id, parentId: '#' + id, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, partial: partial }) %> <% if (section.articles.length) { %>
<% section.articles.forEach(function(article) { %>
<%= article.title %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% if (sections.length) { %>
<% sections.slice(0, maxSections).forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-section-list-sections', { parent: section, sections: section.sections, maxSections: maxSections, partial: partial }) %>
<% }); %> <% if (sections.length > maxSections) { %>
See more
<% } %>
<% } %>
<% categories.forEach(function(category) { %> <% var isActive = category.id === activeCategoryId %>
<%= category.name %>
<% if (category.sections.length) { %>
<% category.sections.forEach(function(section) { %>
<%= section.name %>
<% }); %>
<% } %>
<% }); %>
<% topLevelSections = sections.filter(function(section) { return section['category_id'] === activeCategoryId && section['parent_section_id'] === null; }); %>
<% topLevelSections.forEach(function(section) { %> <% var isActive = section.isActive %>
<%= section.name %>
<% if (section.sections.length) { %>
<% section.sections.forEach(function(section) { %>
<%= section.name %>
<% }); %>
<% } %>
<% }); %>
<% var activeSection = activeSection || sections.filter(function(section) { return section.id === parseInt(activeSectionId, 10); })[0] || null %> <% if (activeSection && activeSection.sections.length) { %>
<% activeSection.sections.forEach(function(section) { %>
<%= section.name %>
<%= partial('section-tree', { sections: sections || [], activeSection: section, partial, activeSectionId: section.id }) %>
<% }) %>
<% } %> <% if (activeSection && activeSection.articles.length) { %>
<% activeSection.articles.forEach(function(article) { %>
<%= article.title %>
<% }) %>
<% } %>