Skip to main content
Toggle navigation menu
Dashboard
Catalog
Shop
Community
Support
Submit a request
Sign in
Learn
What can we help you with?
Search
Learn by topic
Getting Started with your Glowforge
This is a description
Popular videos
View more
<% var sectionIds = sections .filter(function(section) { return section['category_id'] === activeCategoryId; }) .map(function(section) { return section.id }); var promotedArticles = articles .filter(function(article) { return article.promoted && sectionIds.indexOf(article['section_id']) !== -1; }) %>
Popular articles
<% if (promotedArticles.length) { %>
<% promotedArticles.forEach(function(article, index) { %>
<%= article.title %>
<% }) %>
<% } else { %>
empty
<% } %>
Categories
<% categories.forEach(function(category, index) { %>
<%= category.name %>
<% if (category.sections.length) { %>
<% } %>
<%= 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 %>
<% if (section.sections.length || section.articles.length) { %>
<% } %>
<%= 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 (ids.length) { %>
<% ids.forEach(function(id, index) { %>
<% if (playInline) { %>
<% if (showDuration) { %>
<% } %>
<% } else { %>
<% if (showDuration) { %>
<% } %>
<% } %> <% if (showTitle) { %>
<% } %>
<% }); %>
<% } %>