Weitere links und Download

Was hälst du denn von dieser Datei im eigenen Theme unter frontend/detail/tabs.tpl?

Inklusive der Lösung von Heiner Lohaus.

{extends file="parent:frontend/detail/tabs.tpl"}

{* Rating tab *}
{block name="frontend_detail_tabs_rating"}
    {if !{config name=VoteDisable}}
        
            {s name='DetailTabsRating'}{/s}
            {block name="frontend_detail_tabs_navigation_rating_count"}
                {$sArticle.sVoteAverage.count}
            {/block}
        
    {/if}
{/block}

{* New tab *}
{block name="frontend_detail_tabs_navigation_inner"}
    {$smarty.block.parent}

    {if $sArticle.sLinks|count > 1 || $sArticle.sDownloads}
        
            {s namespace="frontend/detail" name='DetailDescriptionHeaderLinksAndDownloads'}{/s}

            
                {math equation="x + y" x=(($sArticle.sLinks|count) - 1) y=$sArticle.sDownloads|count}
            
        
    {/if}
{/block}

{* New Tab container *}
{block name="frontend_detail_tabs_content_inner"}
    {$smarty.block.parent}

    {if $sArticle.sLinks|count > 1 || $sArticle.sDownloads}
        
            
                {s namespace="frontend/detail" name='DetailDescriptionHeaderLinksAndDownloads'}{/s}

                
                   {math equation="x + y" x=(($sArticle.sLinks|count) - 1) y=$sArticle.sDownloads|count}
                
            

            
                {s namespace="frontend/detail" name='DetailDescriptionHeaderLinksAndDownloads'}{/s}

                
                    {s namespace="frontend/detail" name='DetailDescriptionHeaderLinksAndDownloads'}
                        Hier finden Sie weiterführende Links und Downloads
                    {/s}
                    
                
            
            
                
                     
                        {s namespace='frontend/detail/tabs' name='TabBackButton'}Zurück{/s}
                    
                
                
                    
                        {foreach $sArticle.sLinks as $link}
							
                                {$link.description}
							
						{/foreach}

                        {foreach $sArticle.sDownloads as $download}
                            
                                {$download.description}
                            
                        {/foreach}
                    
                
            
        
    {/if}
{/block}

 

2 „Gefällt mir“