Skip to content

Commit

Permalink
Notice box now appears above tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderha authored Jul 10, 2018
1 parent 0522e26 commit 6d07196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NoIndexExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public function updateCMSFields($fields)
if (Director::isLive()) {
return;
}
$fields->addFieldToTab('Root.Main', LiteralField::create(
$fields->unshift(LiteralField::create(
'NoIndexWarningHeader',
'<div class="alert alert-warning">' . _t(
self::class . '.NO_INDEX_WARNING',
"Warning: No indexing! This website is running in development mode, and is not being indexed by search engines"
)
. '</div>'
), 'Title');
));
}

}

0 comments on commit 6d07196

Please sign in to comment.