Skip to content

Commit 4e17a5e

Browse files
committed
Added a warning if the current topic is hidden from search engines
A non-indexed topic won't be displayed in search results—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 056209b commit 4e17a5e

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
@@ -44,6 +44,12 @@
4444
<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.
4545
</div>
4646
}
47+
@if (Model.Topic.NoIndex) {
48+
<div class="alert alert-warning" role="alert">
49+
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
50+
<strong>Note:</strong> This topic is currently hidden from search engines. Customers can still access it, but it won't show up in search results.
51+
</div>
52+
}
4753
@if (!String.IsNullOrWhiteSpace(Model.ContentTypeDescriptor.Description)) {
4854
<div class="alert alert-primary" role="alert">
4955
@Model.ContentTypeDescriptor.Description

0 commit comments

Comments
 (0)