Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit 36c29d9

Browse files
author
Otis Wright
committed
Updates
2 parents d1fb7b9 + 6bf96e7 commit 36c29d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code/ExtraPageFieldsExtension.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ public function updateSettingsFields(FieldList $fields)
6161
return empty($this->owner->MenuTarget) ? '' : "target=\"{$this->owner->MenuTarget}\"";
6262
}
6363

64+
Public function MetaTags(& $tags) {
65+
if(is_a(Director::get_current_page(), 'Security')){
66+
$tags = $tags . '<meta name="robots" content="noindex">';
67+
}
68+
}
69+
6470
public function onBeforeWrite()
6571
{
6672
parent::onBeforeWrite();

0 commit comments

Comments
 (0)