Hi,
da gibt es zwei Ansätze. Entweder editierst du das fe_page-Template und fügst im Footer folgenden Code ein:
Code:
<div class="socialshares"><span>Teilen: </span>
<a href="share/?p=facebook[&]u={{env::path}}{{env::request}}[&]t={{page::pageTitle}}" rel="nofollow" title="{{page::pageTitle}}" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/facebook.gif" width="16" height="16" alt=""></a>
<a href="share/?p=gplus[&]u={{env::path}}{{env::request}}[&]t={{page::pageTitle}}" rel="nofollow" title="{{page::pageTitle}}" onclick="window.open(this.href,'','width=600,height=200,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/gplus.gif" width="16" height="16" alt=""></a>
</div>
oder du erstellst ein Modul und verwendest diesen Code:
Code:
<div class="socialshares"><span>Teilen</span><br>
<a href="share/?p=facebook[&]u={{env::path}}{{env::request}}[&]t={{page::pageTitle}}" rel="nofollow" title="{{page::pageTitle}}" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="/assets/contao/images/facebook.gif" width="16" height="16" alt="facebook"></a>
<a href="share/?p=gplus[&]u={{env::path}}{{env::request}}[&]t={{page::pageTitle}}" rel="nofollow" title="{{page::pageTitle}}" onclick="window.open(this.href,'','width=600,height=200,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="/assets/contao/images/gplus.gif" width="16" height="16" alt="googleplus"></a>
</div>
Viele Grüße,
operatorone
Lesezeichen