-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 40: Completed ASP.NET Core Example
- Loading branch information
Showing
101 changed files
with
987 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
- name: Installation | ||
link: /install.html | ||
- name: About the Examples | ||
dropdown: | ||
- name: Helix Basic Company | ||
link: /examples/helix-basic-company.html | ||
- name: Helix Franchise Company | ||
link: /examples/helix-franchise-company.html | ||
- name: Helix Corporation | ||
link: /examples/helix-corporation.html | ||
link: /examples/helix-basic-company.html | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Empty file.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions
14
...basic-aspnetcore/src/Environment/sitecore/App_Config/Include/Sitecore.LinkProvider.config
This file was deleted.
Oops, something went wrong.
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
18 changes: 18 additions & 0 deletions
18
examples/helix-basic-aspnetcore/src/Feature/BasicContent/rendering/Models/AccordionItem.cs
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,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Sitecore.AspNet.RenderingEngine.Binding.Attributes; | ||
using Sitecore.LayoutService.Client.Response.Model.Fields; | ||
|
||
namespace BasicCompany.Feature.BasicContent.Models | ||
{ | ||
public class AccordionItem | ||
{ | ||
public TextField Title { get; set; } | ||
|
||
public RichTextField Content { get; set; } | ||
|
||
[SitecoreContextProperty] | ||
public bool IsEditing { get; set; } | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...s/helix-basic-aspnetcore/src/Feature/BasicContent/rendering/Views/Shared/Accordion.cshtml
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,3 @@ | ||
<div class="container accordion"> | ||
<sc-placeholder name="accordion"></sc-placeholder> | ||
</div> |
15 changes: 15 additions & 0 deletions
15
...ure/BasicContent/rendering/Views/Shared/Components/SitecoreComponent/AccordionItem.cshtml
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,15 @@ | ||
@model AccordionItem | ||
|
||
@{ | ||
// always render accordions open in EE with button hidden | ||
string bodyStyle = Model.IsEditing ? "max-height: 100rem" : null; | ||
} | ||
<div class="accordion-item"> | ||
<div class="accordion-header"> | ||
<h3 asp-for="Title"></h3> | ||
<button></button> | ||
</div> | ||
<div class="accordion-body" style="@bodyStyle"> | ||
<sc-text asp-for="Content"></sc-text> | ||
</div> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
...eature/BasicContent/rendering/Views/Shared/Components/SitecoreComponent/HeroBanner.cshtml
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
2 changes: 1 addition & 1 deletion
2
...Feature/BasicContent/rendering/Views/Shared/Components/SitecoreComponent/PromoCard.cshtml
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
2 changes: 1 addition & 1 deletion
2
...ure/BasicContent/rendering/Views/Shared/Components/SitecoreComponent/SectionHeader.cshtml
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
1 change: 1 addition & 0 deletions
1
examples/helix-basic-aspnetcore/src/Feature/BasicContent/rendering/Views/_ViewImports.cshtml
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
File renamed without changes.
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
Oops, something went wrong.