Skip to content

Commit bdfcb7e

Browse files
committed
Added a warning if the current topic is hidden
A hidden topic is won't be displayed in the navigation—but the setting for this is hidden behind the _Navigation_ tab. The warning elevates attention to this, while keeping the setting under _Navigation_, where it makes logical sense.
1 parent 8cccbe1 commit bdfcb7e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • OnTopic.Editor.AspNetCore/Areas/Editor/Views/Editor

OnTopic.Editor.AspNetCore/Areas/Editor/Views/Editor/Edit.cshtml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
<strong>Warning:</strong> Not all relationships were successfully loaded from the database. To prevent inadvertent deletion of relationships, any relationships that are removed won't be persisted to the database. You can still add new relationships.
3939
</div>
4040
}
41+
@if (Model.Topic.IsHidden) {
42+
<div class="alert alert-warning" role="alert">
43+
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
44+
<strong>Note:</strong> This topic is currently hidden and will not be displayed in the site navigation. Customers can still access it, and it will still show up in search results.
45+
</div>
46+
}
4147
@if (!String.IsNullOrWhiteSpace(Model.ContentTypeDescriptor.Description)) {
4248
<div class="alert alert-primary" role="alert">
4349
@Model.ContentTypeDescriptor.Description

0 commit comments

Comments
 (0)