Simulate Subsections in Help Center

3 Kommentare

  • Starr McFarland

    I figured out a better solution using Curlybars.  I'm including it here, in case anyone else wants to simulate subsections.  The order of your articles becomes a bit more important, but still not a bad workaround for the lack of subsections in Help Center.  You can see the end results here

    In Customize Content | Section Page:

    {{#if section.articles}}
      <ul class="article-list">
        {{#each section.articles}}

    <!--Above is Zendesk code.  Between these comments is my code-->
        {{#is title 'How to Customize a FlexBook® Textbook or Read Modality'}}
        <br/>
        <h3>Working With Chapters</h3>
        {{/is}}
    <!--Below is Zendesk code.  End my code-->
       
          <li {{#if promoted}} class="article-promoted" {{/if}}>
            {{#if promoted}}
              <span data-title="{{t 'promoted'}}">★</span>
            {{/if}}
            <a href="{{url}}">{{title}}</a>
          </li>
        {{/each}}
      </ul>
    {{else}}
      <i class="section-empty">
        <a href="{{section.url}}">{{t 'empty'}}</a>
      </i>
    {{/if}}

     

     

     

    2
  • Jessie Schutz
    Zendesk team member

    Hi Starr!

    Thanks so much for sharing your solution! If you'd like, I encourage you to post this in our Tips & Tricks forum. If you do, we'll send you swag! :D

    Thanks again!

    0
  • Starr McFarland

    Well, how can I pass up swag? ;-)  

    Thanks, will do!

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk