mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: RedirectorPage open in new window
This commit is contained in:
parent
69d2ccc023
commit
1adfc4ef01
@ -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
|
||||||
|
@ -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 %>
|
||||||
|
Loading…
Reference in New Issue
Block a user