Add config to open page in new tab from area/top navigation
This commit is contained in:
@@ -56,6 +56,13 @@ call_user_func(function() {
|
||||
'type' => 'check'
|
||||
]
|
||||
],
|
||||
'tx_eptheme_new_tab' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'Seite in neuem Tab/Fenster öffnen',
|
||||
'config' => [
|
||||
'type' => 'check'
|
||||
]
|
||||
],
|
||||
'tx_eptheme_bodyclass' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'CSS Klasse(n) für Body Tag',
|
||||
@@ -111,7 +118,7 @@ call_user_func(function() {
|
||||
'pages',
|
||||
'--div--;Kontext,
|
||||
tx_eptheme_context_pacode,tx_eptheme_context_country,tx_eptheme_context_region,
|
||||
tx_eptheme_hide_searchbar,tx_eptheme_bodyclass,
|
||||
tx_eptheme_hide_searchbar,tx_eptheme_new_tab,tx_eptheme_bodyclass,
|
||||
--div--;Slider,
|
||||
tx_eptheme_slides,
|
||||
--div--;Badge,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<f:for each="{menu}" as="menuitem">
|
||||
<li class="area-nav__list-item">
|
||||
<a class="area-nav__link{f:if(condition: menuitem.active, then: ' active')}{f:if(condition: '{menuitem.uid} == {settings.forceActiveTopnavUid}', then: ' active')}"
|
||||
href="{menuitem.link}"{f:if(condition: '{menuitem.doktype} == 3', then: ' target="_blank"')}
|
||||
href="{menuitem.link}"{f:if(condition: '{menuitem.doktype} == 3 || {menuitem.tx_eptheme_new_tab}', then: ' target="_blank"')}
|
||||
title="{menuitem.linktext}">{menuitem.title -> ep:topnavItem()}</a>
|
||||
</li>
|
||||
</f:for>
|
||||
|
||||
@@ -149,6 +149,7 @@ CREATE TABLE pages
|
||||
tx_eptheme_context_concept int(11) unsigned DEFAULT '0',
|
||||
tx_eptheme_context_product int(11) unsigned DEFAULT '0',
|
||||
tx_eptheme_hide_searchbar tinyint(4) unsigned DEFAULT '0' NOT NULL,
|
||||
tx_eptheme_new_tab tinyint(4) unsigned DEFAULT '0' NOT NULL,
|
||||
tx_eptheme_bodyclass varchar(255) DEFAULT '' NOT NULL,
|
||||
tx_eptheme_slides int(11) unsigned DEFAULT '0',
|
||||
tx_eptheme_badge int(11) unsigned DEFAULT '0'
|
||||
|
||||
Reference in New Issue
Block a user