Skip to main content
Toggle navigation menu
Community
Submit a request
Sign in
Kundelab help center
Community
Generell diskusjon
Generell diskusjon
Show completed
All
Planned
Not planned
Completed
Answered
No status
Sort by newest post
Newest post
Recent activity
Votes
Comments
No posts for the selected filter
Didn't find what you were looking for?
New post
<% var sectionIds = sections .filter(function(section) { if (typeof categoryId !== undefined) { return section['category_id'] == categoryId; } return true; }) .map(function(section) { return section.id }); var promotedArticles = articles.filter(function(article) { return article.promoted && sectionIds.indexOf(article.section_id) !== -1; }) %> <% if (promotedArticles.length) { %>
Frequently asked questions
<%= partial('article-list-partial-general', { articles: promotedArticles }) %>
<% } %>
<% if (articles.length) { %>
<% articles.forEach(function(article) { %>
<%= article.title %>
<% }); %>
<% } %>
<% if (articles.length) { %>
<% articles.forEach(function(article) { %>
<%= article.title %>
<%= Util.getExcerpt(article.body, 0) %>
<% }) %>
<% } else { %>
empty
<% } %>
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 activeCategory = categories.filter(function(category) { return category.isActive; })[0] || null; %> <% if (typeof maxArticles === 'undefined' || !maxArticles) maxArticles = 5; %> <% if (activeCategory && activeCategory.sections.length) { %>
Toggle navigation menu
<% activeCategory.sections.forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-section-list-sections', { id: 'section-' + section.id, parentId: 'section-' + section.id, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, maxArticles: maxArticles, partial: partial }) %> <% if (section.articles.length) { %>
<% section.articles.slice(0, maxArticles).forEach(function(article) { %>
<%= article.title %>
<% }); %> <% if (section.articles.length > maxArticles) { %>
See all articles
<% } %>
<% } %>
<% }); %>
<% } %>
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.forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-section-list-sections', { id: 'section-' + section.id, parentId: '#' + id, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, maxArticles: maxArticles, partial: partial }) %> <% if (section.articles.length) { %>
<% section.articles.slice(0, maxArticles).forEach(function(article) { %>
<%= article.title %>
<% }); %> <% if (section.articles.length > maxArticles) { %>
See all articles
<% } %>
<% } %>
<% }); %>
<% } %>