Render submenu on concept detail pages

This commit is contained in:
Björn Fromme
2018-09-25 21:27:08 +02:00
parent 3e28c11468
commit 18bddc7c22
5 changed files with 21 additions and 5 deletions
@@ -16,5 +16,6 @@ plugin.tx_epproducts {
showSkipassBadge = {$plugin.tx_eptheme.settings.showSkipassBadge}
ratingWidgetLabel = {$plugin.tx_eptheme.settings.ratingWidgetLabel}
skipassPageUid = {$plugin.tx_eptheme.settings.skipassPageUid}
conceptsPageUid = {$plugin.tx_eptheme.settings.conceptsPageUid}
}
}
@@ -49,6 +49,8 @@ plugin.tx_eptheme {
skipassPageUid =
# cat=eptheme/200/280; type=string; label=English page UID
englishPageUid =
# cat=eptheme/200/290; type=string; label=Concepts page UID
conceptsPageUid =
# cat=eptheme/400/100; type=string; label=Phone number general
phoneNumber = 0221 - 272 276 0
@@ -85,6 +85,7 @@ plugin.tx_eptheme {
watchlistPageUid = {$plugin.tx_eptheme.settings.watchlistPageUid}
skipassPageUid = {$plugin.tx_eptheme.settings.skipassPageUid}
englishPageUid = {$plugin.tx_eptheme.settings.englishPageUid}
conceptsPageUid = {$plugin.tx_eptheme.settings.conceptsPageUid}
}
view {
templateRootPaths.0 = EXT:ep_theme/Resources/Private/Templates
@@ -55,8 +55,18 @@
</a>
</p>
</f:if>
<img class="img-responsive lazy" data-src="{f:uri.image(image: concept.teaserImage, width: '330')}"
alt="{concept.teaserImage.alternative}" title="{concept.teaserImage.title}">
<v:menu pageUid="{settings.conceptsPageUid}" levels="1">
<ul class="list-unstyled">
<f:for each="{menu}" as="page">
<li>
<f:link.typolink parameter="{page.uid}"
class="btn btn-warning ep-sidebar{f:if(condition: '{page.active}', then: ' active')}">
{page.title}
</f:link.typolink>
</li>
</f:for>
</ul>
</v:menu>
</div>
</div>
</div>