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
extensions:
- DNADesign\Elemental\Extensions\ElementalPageExtension
SilverStripe\CMS\Model\RedirectorPage:
extensions:
- A2nt\CMSNiceties\Extensions\RedirectorPageEx

View File

@ -6,21 +6,21 @@
$ExtraClass
{$LinkClass}
<% if $RedirectionType = 'External' || $ExternalURL || $OpenInNewWindow %>
external
legacy
<% end_if %>
<% if $isCurrent || $isSection %>active <% end_if %>
<% if $isCurrent || $isSection %>active<% end_if %>
<% if $isSection %>section<% end_if %>
"
<% if $RedirectionType = 'External' || $OpenInNewWindow %>
<% if $OpenInNewWindow %>
rel="noreferrer"
target="_blank"
<% end_if %>
data-text="{$MenuTitle.XML}"
>
<% if $BlockIcon %>
<i class="fa-icon $BlockIcon"></i>
<% end_if %>
<% if $BlockIcon %>
<i class="fa-icon $BlockIcon"></i>
<% end_if %>
$MenuTitle.XML
<% if $isCurrent || $isSection %><i class="visually-hidden">(current)</i><% end_if %>
</a>