Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

[WIP] Lists with all records in a multiple-section #108

Closed
wants to merge 1 commit into from

Conversation

cctuan
Copy link

@cctuan cctuan commented Dec 23, 2018

Proposal

Add innersection and excludeself parameter for section type template.

When Vapid user would like to display relative sections in one of sections,

ASIS.
_sections.html

{{#section sections}}
  {{section_name}}
  {{section_description}}
  <h3>Relative Links</h3>
  <ul>
  {{#section sections}}
     <li>{{section_name}}</li>
  {{/section}}
  </ul>
{{/section}}

The above template will only display one section information in Relative Links.

TOBE - 1
ASIS.
_sections.html

{{#section sections}}
  {{section_name}}
  {{section_description}}
  <h3>Relative Links</h3>
  <ul>
  {{#section sections innersection=true}}
     <li>{{section_name}}</li>
  {{/section}}
  </ul>
{{/section}}

The above template will only display ALL section information in Relative Links.

TOBE - 2
ASIS.
_sections.html

{{#section sections}}
  {{section_name}}
  {{section_description}}
  <h3>Relative Links</h3>
  <ul>
  {{#section sections innersection=true excludeself=true}}
     <li>{{section_name}}</li>
  {{/section}}
  </ul>
{{/section}}

The above template will only display ALL section information except itself in Relative Links.

Please check #34 (comment) for more detail.

@cctuan cctuan closed this Dec 23, 2018
@cctuan cctuan deleted the issue-34 branch December 23, 2018 16:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant