Skip to main content
Learning
Toggle navigation menu
<% links.forEach(function(link) { %> <% var hasDropdown = (link.title === 'Using CMap'); %>
<%= link.title %>
<% if (hasDropdown) { %> <% var activeCategory = categories.filter(function(category) { return category.name === link.title; })[0] || null; %> <% var dropdownItems = []; %> <% if (activeCategory) { dropdownItems = sections.filter(function(section) { return activeCategory.id === section['category_id'] && section['parent_section_id'] === null; }) } %> <% if (dropdownItems.length) { %>
<% dropdownItems.forEach(function(item) { %>
<%= item.name %>
<% }) %>
<% } %> <% } %>
<% }) %>
Getting Started
Using CMap
CMap Academy
FAQs
Product
Success Insights
Sign in
Contact Support
Search
Xero
Learning Center
Product
Integrations
Xero
Xero
Popular searches:
,
<% blocks.forEach(function(block, index) { %>
<% if (imageHeight) { %>
<% } %> <% if (block.name) { %>
<%= block.name %>
<% } %> <% if (block.description) { %>
<%= block.description %>
<% } %>
<% }) %>
Internal Help Centre
<% blocks.forEach(function(block, index) { %>
<% if (imageHeight) { %>
<% } %> <% if (block.name) { %>
<%= block.name %>
<% } %> <% if (block.description) { %>
<%= block.description %>
<% } %>
<% }) %>
<% categories.forEach(function(category) { %>
<% if (category.id === activeCategoryId) { %>
<%= category.name %>
<% } else { %>
<%= category.name %>
<% } %> <% if (category.sections.length) { %>
<% category.sections.forEach(function(section) { %>
<%= section.name %>
<% }); %>
<% } %>
<% }); %>
Categories
Categories
<% categories.forEach(function(category) { %>
<%= category.name %>
<% }); %>
Categories
<% categories.forEach(function(category, index) { %>
<%= category.name %>
<%= partial('partial-article-list-sections', { id: 'category-' + category.id, parentId: '#sidebar-article-navigation', sections: category.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, partial: partial }) %>
<% }); %>
<% 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 %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% var activeSection = sections.filter(function(section) { return section.id === activeSectionId; })[0] || null; var topLevelSections; if (activeSection) { topLevelSections = sections.filter(function(section) { return activeSection['parent_section_id'] === section['parent_section_id'] && activeSection['category_id'] === section['category_id']; }); } else { topLevelSections = sections.filter(function(section) { return section['category_id'] === activeCategoryId && section['parent_section_id'] === null; }); } %>
Toggle navigation menu
<% topLevelSections.forEach(function(section, index) { %>
<%= section.name %>
<% if (section.sections.length) { %> <% section.sections.forEach(function(subsection) { %>
<%= subsection.name %>
<% }); %> <% } else if (section.articles.length) { %> <% section.articles.forEach(function(article) { %>
<%= article.title %>
<% }); %> <% } else { %>
empty
<% } %>
<% }); %>
<% if (heading) { %>
<%= heading %>
<% } %> <% if (body) { %>
<%= body %>
<% } %> <% if (url && label) { %>
<%= label %>
<% } %>
<% if (children.length) { %>
<% children.forEach(function(child, index) { %> <% var isActive = initial === index %>
<%= child.title %>
<%= child.innerHTML %>
<% }) %>
<% } %>