Skip to main content
Toggle navigation menu
My Requests
Submit a request
Sign in
<% var activeCategory = categories.filter(function(category) { return category.isActive || category.id === activeCategoryId })[0] %>
<% categories.forEach(function(category, index) { %> <% var firstSection = sections.filter(function(section) { return section.category_id === category.id })[0] %> <% var firstArticle = articles.filter(function(article) { return firstSection && article.section_id === firstSection.id })[0] || category %> <% var isActive = activeCategory && activeCategory.id === category.id %>
<%= category.name %>
<% }); %>
Our documentation
Our documentation moved to docs.brightdata.com
Check out our new and improved documentation at docs.brightdata.com!
Popular searches:
,
Categories
<% if (categories.length > 1) { %> <% categories.forEach(function(category, index) { %>
<%= category.name %>
<% if (category.sections.length) { %>
<% category.sections.forEach(function(section) { %>
<%= section.name %>
<% }) %>
<% } else { %>
empty
<% } %>
<% }) %> <% } else { %> <% sections.forEach(function(section, index) { %>
<%= section.name %>
<% if (section.sections.length) { %>
<% section.sections.forEach(function(section) { %>
<%= section.name %>
<% }) %>
<% } else if (section.articles.length) { %>
<% section.articles.forEach(function(article) { %>
<%= article.title %>
<% }) %>
<% } else { %>
empty
<% } %>
<% }) %> <% } %>
<% if (previousArticle || nextArticle) { %>
<% if (previousArticle) { %>
Previous article
<%= previousArticle.title %>
<% } %> <% if (nextArticle) { %>
Next article
<%= nextArticle.title %>
<% } %>
<% } %>
<% if (items.length > 1) { %>
In this article
<% items.forEach(function(item) { %>
<%= item.name %>
<% }); %>
<% } %>
<% var maxSections = 5 %>
Toggle navigation menu
<% categories.forEach(function(category, index) { %> <% if (category.id === activeCategoryId) { %> <%= partial('partial-article-list-sections', { id: 'category-' + category.id, parent: category, sections: category.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, maxSections: maxSections, partial: partial }) %> <% } %> <% }) %>
<% var maxSections = 12 %>
Toggle navigation menu
<% categories.forEach(function(category, index) { %>
<%= category.name %>
<%= partial('partial-section-list-sections', { id: 'category-' + category.id, parent: category, sections: category.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, maxSections: maxSections, partial: partial }) %>
<% }); %>
Toggle navigation menu
Categories
<% categories.forEach(function(category) { %>
<%= category.name %>
<% }); %>
<% var isSubsection = parent.hasOwnProperty('parent_section_id'); %> <% if (sections.length) { %>
<% sections.forEach(function(section) { %>
<% if (isSubsection) { %>
<%= section.name %>
<% } else { %>
<%= section.name %>
<% } %> <%= partial('partial-article-list-sections', { id: 'section-' + section.id, parent: section, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, maxSections: maxSections, partial: partial }) %> <% if (section.articles.length && !isSubsection) { %>
<% section.articles.forEach(function(article) { %>
<%= article.title %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% var isSubsection = parent.hasOwnProperty('parent_section_id'); %> <% if (sections.length) { %>
<% sections.slice(0, maxSections).forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-section-list-sections', { id: 'section-' + section.id, parent: section, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, maxSections: maxSections, partial: partial }) %>
<% }); %> <% if (sections.length > maxSections) { %>
See more
<% } %>
<% } %>
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 }) %>
<% }); %>
<% 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 %>
<% }); %>
<% } %>
<% }); %>
<% } %>