-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fallback alternate when a custom stereotype is used (#12149)
- Loading branch information
1 parent
03d0534
commit 12be745
Showing
6 changed files
with
89 additions
and
8 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/OrchardCore.Modules/OrchardCore.Contents/Views/Stereotype.DetailAdmin.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,5 @@ | ||
@{ | ||
Model.Metadata.Type = "Content_DetailAdmin"; | ||
Model.Metadata.Alternates.Clear(); | ||
@await DisplayAsync(Model) | ||
} |
5 changes: 5 additions & 0 deletions
5
src/OrchardCore.Modules/OrchardCore.Contents/Views/Stereotype.Edit.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,5 @@ | ||
@{ | ||
Model.Metadata.Type = "Content_Edit"; | ||
Model.Metadata.Alternates.Clear(); | ||
@await DisplayAsync(Model) | ||
} |
5 changes: 5 additions & 0 deletions
5
src/OrchardCore.Modules/OrchardCore.Contents/Views/Stereotype.Summary.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,5 @@ | ||
@{ | ||
Model.Metadata.Type = "Content_Summary"; | ||
Model.Metadata.Alternates.Clear(); | ||
@await DisplayAsync(Model) | ||
} |
5 changes: 5 additions & 0 deletions
5
src/OrchardCore.Modules/OrchardCore.Contents/Views/Stereotype.SummaryAdmin.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,5 @@ | ||
@{ | ||
Model.Metadata.Type = "Content_SummaryAdmin"; | ||
Model.Metadata.Alternates.Clear(); | ||
@await DisplayAsync(Model) | ||
} |
5 changes: 5 additions & 0 deletions
5
src/OrchardCore.Modules/OrchardCore.Contents/Views/Stereotype.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,5 @@ | ||
@{ | ||
Model.Metadata.Type = "Content"; | ||
Model.Metadata.Alternates.Clear(); | ||
@await DisplayAsync(Model) | ||
} |
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