IMPR: RedirectorPage open in new window

This commit is contained in:
Tony Air 2023-12-13 01:16:35 +02:00
parent 69d2ccc023
commit 1adfc4ef01
2 changed files with 10 additions and 6 deletions

View File

@ -58,3 +58,7 @@ Page:
- A2nt\CMSNiceties\Models\TeamMember - A2nt\CMSNiceties\Models\TeamMember
extensions: extensions:
- DNADesign\Elemental\Extensions\ElementalPageExtension - DNADesign\Elemental\Extensions\ElementalPageExtension
SilverStripe\CMS\Model\RedirectorPage:
extensions:
- A2nt\CMSNiceties\Extensions\RedirectorPageEx

View File

@ -6,12 +6,12 @@
$ExtraClass $ExtraClass
{$LinkClass} {$LinkClass}
<% if $RedirectionType = 'External' || $ExternalURL || $OpenInNewWindow %> <% if $RedirectionType = 'External' || $ExternalURL || $OpenInNewWindow %>
external legacy
<% end_if %> <% end_if %>
<% if $isCurrent || $isSection %>active <% end_if %> <% if $isCurrent || $isSection %>active<% end_if %>
<% if $isSection %>section<% end_if %> <% if $isSection %>section<% end_if %>
" "
<% if $RedirectionType = 'External' || $OpenInNewWindow %> <% if $OpenInNewWindow %>
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
<% end_if %> <% end_if %>