-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiflowblock sections to singlepage
- Loading branch information
1 parent
2914155
commit 4bf326b
Showing
6 changed files
with
160 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[block] | ||
name = Multisection Block | ||
|
||
[fields.title] | ||
label = Section Title | ||
description = A title for this section. If this and the description is left empty, no title block is shown for the section. | ||
size = large | ||
type = string | ||
|
||
[fields.description] | ||
label = Section Description | ||
description = If present, displayed as a short block of text underneath the title. Can use Markdown formatting. | ||
type = markdown | ||
|
||
[fields.nav_label] | ||
label = Navbar Link Label | ||
description = Text to use as a link to the section in the top navigation bar. Typically a shorter form of the section title. If not provided, this section will not appear in the navbar. | ||
type = string | ||
|
||
[fields.section_id] | ||
label = Section ID for HTML | ||
description = Alphanumeric, unique identifier to use for the "id" property of this section within the HTML. Required; will appear in links to the section so should be human-readable. | ||
type = string | ||
|
||
[fields.inner_content] | ||
label = Inner Content Flowblocks | ||
description = The set of flowblock sections comprising the body content of the multi-section. | ||
type = flow | ||
flow_blocks = mission, content, services, gallery, team, dashboard, multisection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% if this.inner_content %} | ||
{% for inner_block in this.inner_content.blocks %} | ||
{% set extra_classes = '' %} | ||
{% if not inner_block.title %} | ||
{% set extra_classes = extra_classes ~ ' notitle-section' %} | ||
{% endif %} | ||
<div id="section-{{ inner_block.section_id }}" data-section="{{ inner_block.section_id }}" class="{{ inner_block._flowblock }}-section body-subsection{{ extra_classes }}"> | ||
{% if inner_block.video_url and inner_block.video_url.url != '' %} | ||
<div class="video-spacer"></div> | ||
{% endif %} | ||
{% if inner_block.title or inner_block.description %} | ||
<div class="text-center fh5co-heading"> | ||
<h2>{{ inner_block.title }}</h2> | ||
{{ inner_block.description }} | ||
</div> | ||
{% endif %} | ||
{{ inner_block }} | ||
</div> <!-- END {{ inner_block._flowblock }}-subsection --> | ||
{% endfor %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters