I have integrated the Social Media buttons on my blog according to this tutorial.
Functionally very good.
But now: - I don't want the buttons to be displayed in the blog overview, where e.g. 5 posts are displayed on one page.
the buttons should only be displayed if a contribution is displayed in the single view.
Maybe someone can take a look at my entry-default.tpl:
Code: Select all
<div itemscope itemtype="http://schema.org/BlogPosting" id="{$id}" class="entry {$date|date_format:"y-%Y m-%m d-%d"}">
{* using the following way to print the date, if more *}
{* than one entry have been written the same day, *}
{* the date will be printed only once *}
{$date|date_format_daily:"<h2 class=\"date\">`$fp_config.locale.dateformat`</h2>"}
<h3 itemprop="name">
<a href="{$id|link:post_link}">
{$subject|tag:the_title}
</a>
</h3>
{include file=shared:entryadminctrls.tpl}
<div itemprop="articleBody">
{$content|tag:the_content}
</div>
<ul class="entry-footer">
<li class="entry-info">{$lang.comments.publishedby} <span itemprop="author">{$author}</span> {$lang.comments.worda}
{$date|date_format}
<div itemprop="articleSection">
{if ($categories)} {$lang.comments.wordin} {$categories|@filed}{/if}
</div>
</li>
{if !(in_array('commslock', $categories) && !$comments)}
<li class="link-comments">
<a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number}
{if isset($views)}(<strong>{$views}</strong> {$lang.comments.timesseen}){/if}
</a>
</li>
{/if}
</ul>
{include file=shared:entry_webshare_button.tpl} <!--- an dieser Stelle befinden sich die Social Media Share-Buttons --->
</div>
Thanks and best regards
Frank