Recent searches


No recent searches

I want to user parent section id in inner section. Here -<div class="col-sm-4 all section_type_{{@index}}">



Posted Nov 30, 2023

<section class="portfolio section articles_category_section">
  <div class="container">
     <div class="lt-hero-unit__search-box lt-search-box-lg--icon lt-search-box lt-mt-6 lt-mt-lg-8 lt-d-print-none " >
        <form role="search" class="search" data-search="" data-instant="true" autocomplete="off" action="/hc/en-us/search" accept-charset="UTF-8" method="get"> <input name="utf8" type="hidden" value="✓" autocomplete="off">
          <input  type="search" name="query" id="query" placeholder="" autocomplete="off" aria-label="Help me with...">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12" class="search-icon" aria-hidden="true">
      <circle cx="4.5" cy="4.5" r="4" fill="none" stroke="#6260E1"/>
      <path stroke="#6260E1" stroke-linecap="round" d="M11 11L7.5 7.5"/>
    </svg>          
<input  class="fas fa-search" type="submit" name="commit" value="Search"><i ></i> 
        </form>
  </div>
    <div class="top-side">
      <h4 class="articles_title">Articles</h4>
    </div>
    <div class="filters">
      <ul>
        <li class="active" data-filter="*">All</li>
        {{#each sections}}
        <li data-filter=".section_type_{{@index}}">{{name}}</li>
        {{/each}}
      </ul>
    </div>
    <div class="filters-content">
      <div class="row grid">
      {{#if sections}}
        {{#each sections}}
        {{#if articles}}
              {{#each articles}}
          <div class="col-sm-4 all section_type_{{@index}}">
                  <div class="item">
                    <div class="p-inner">
                      <h5>{{title}}</h5>
                      <div class="article_des">{{body}}</div>
                      <div class="article_footer_row">
                        <div class="article_cat">Topic 01</div>
                        <div class="article_date">August 23, 2023 02:01</div>
                      </div>
                    </div>
                  </div>
            </div> 
              {{/each}}
            {{/if}}
          {{/each}}
        {{/if}}
      </div>
    </div>
  </div>
</section>

1

1

1 comment

image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hey there,

I'm afraid I don't follow exactly what you're asking. Would you mind clarifying what you were looking to do, and which part of the code you were referring to?

 

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post