display manufacturer content as additional tab on article details page

This commit is contained in:
Daniel Seifert 2024-11-18 12:04:53 +01:00 committed by MaxBuhe01
parent 2ef3223e86
commit 8eaa97d889
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,12 @@
[{$smarty.block.parent}]
[{assign var="oManufacturer" value=$oView->getManufacturer()}]
[{if $oManufacturer && $oManufacturer->d3GetLongdesc()}]
[{capture append="tabs"}]<a href="#manufacturertab" data-toggle="tab">[{oxmultilang ident="MANUFACTURER"}]</a>[{/capture}]
[{capture append="tabsContent"}]
<div id="manufacturertab" class="tab-pane[{if $blFirstTab}] active[{/if}]">
[{oxeval var=$oManufacturer->d3GetLongdesc()}]
</div>
[{assign var="blFirstTab" value=false}]
[{/capture}]
[{/if}]

View File

@ -56,5 +56,10 @@ $aModule = [
'block' => 'details_productmain_manufacturersicon', 'block' => 'details_productmain_manufacturersicon',
'file' => 'Application/views/blocks/page/details/inc/details_productmain_manufacturersicon.html.tpl', 'file' => 'Application/views/blocks/page/details/inc/details_productmain_manufacturersicon.html.tpl',
], ],
[
'template' => 'page/details/inc/tabs.tpl',
'block' => 'details_tabs_invite',
'file' => 'Application/views/blocks/page/details/inc/details_tabs_invite.html.tpl',
],
] ]
]; ];