social media share icon
Verfasst: 27. Nov 2017, 13:16
Grunsätzliche Frage :
muß ich bei den social media icons in der Übersicht oder in der Detaildarstellung etwas extra konfigurieren oder beachten ? Folgendes passiert, egal ,ob in der Overview oder in der Detailansicht :
Bei Klick auf den Share button für facebook wird man nicht zu facebook weitergeleitet:
https://www.facebook.com/dialog/return/ ... id+URL#_=_
Bei Twitter soll laut Kunden nicht die adresse der website angezeigt werden, da steht mit sonderzeichen nur weinbezeichnung. Bei Google + funktioniert, es nur ist das Flaschenbild abgeschnitten.
Habe ich , oder Contao / Merconis überhaupt einen Einfluß darauf , wie dieser Link in den social Media accounts dargestellt wird ?
Diesen Bereich habe ich in keinem Template geändert :
<div class="socialMediaButtons">
<ul class="buttons">
<li class="first facebook"><a href="share?p=facebook&u=<?php echo urlencode($this->Environment->url.'/'.$this->objProduct->_linkToProduct); ?>&t=<?php echo urlencode(html_entity_decode($this->objProduct->_title)); ?>" rel="nofollow" title="<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText064']; ?>" onclick="window.open(this.href, '', 'width=760,height=570,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;">Facebook</a></li>
<li class="twitter"><a href="share?p=twitter&u=<?php echo urlencode($this->Environment->url.'/'.$this->objProduct->_linkToProduct); ?>&t=<?php echo urlencode(html_entity_decode($this->objProduct->_title)); ?>" rel="nofollow" title="<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText065']; ?>" onclick="window.open(this.href, '', 'width=800,height=600,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;">Twitter</a></li>
<li class="googleplus"><a href="https://plus.google.com/share?url=<?php echo urlencode($this->Environment->url.'/'.$this->objProduct->_linkToProduct); ?>" rel="nofollow" title="<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText066']; ?>" onclick="window.open(this.href, '', 'width=800,height=600,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;">Google+</a></li>
<li class="last email"><a href="mailto:<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText067']; ?>?subject=<?php echo rawurlencode(html_entity_decode($GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText068'].": ".$this->objProduct->_title)); ?>&body=<?php echo rawurlencode($GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText069'].': '.$this->Environment->url.'/'.$this->objProduct->_linkToProduct); ?>" title="<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText070']; ?>">E-Mail</a></li>
</ul>
</div>
muß ich bei den social media icons in der Übersicht oder in der Detaildarstellung etwas extra konfigurieren oder beachten ? Folgendes passiert, egal ,ob in der Overview oder in der Detailansicht :
Bei Klick auf den Share button für facebook wird man nicht zu facebook weitergeleitet:
https://www.facebook.com/dialog/return/ ... id+URL#_=_
Bei Twitter soll laut Kunden nicht die adresse der website angezeigt werden, da steht mit sonderzeichen nur weinbezeichnung. Bei Google + funktioniert, es nur ist das Flaschenbild abgeschnitten.
Habe ich , oder Contao / Merconis überhaupt einen Einfluß darauf , wie dieser Link in den social Media accounts dargestellt wird ?
Diesen Bereich habe ich in keinem Template geändert :
<div class="socialMediaButtons">
<ul class="buttons">
<li class="first facebook"><a href="share?p=facebook&u=<?php echo urlencode($this->Environment->url.'/'.$this->objProduct->_linkToProduct); ?>&t=<?php echo urlencode(html_entity_decode($this->objProduct->_title)); ?>" rel="nofollow" title="<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText064']; ?>" onclick="window.open(this.href, '', 'width=760,height=570,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;">Facebook</a></li>
<li class="twitter"><a href="share?p=twitter&u=<?php echo urlencode($this->Environment->url.'/'.$this->objProduct->_linkToProduct); ?>&t=<?php echo urlencode(html_entity_decode($this->objProduct->_title)); ?>" rel="nofollow" title="<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText065']; ?>" onclick="window.open(this.href, '', 'width=800,height=600,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;">Twitter</a></li>
<li class="googleplus"><a href="https://plus.google.com/share?url=<?php echo urlencode($this->Environment->url.'/'.$this->objProduct->_linkToProduct); ?>" rel="nofollow" title="<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText066']; ?>" onclick="window.open(this.href, '', 'width=800,height=600,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;">Google+</a></li>
<li class="last email"><a href="mailto:<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText067']; ?>?subject=<?php echo rawurlencode(html_entity_decode($GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText068'].": ".$this->objProduct->_title)); ?>&body=<?php echo rawurlencode($GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText069'].': '.$this->Environment->url.'/'.$this->objProduct->_linkToProduct); ?>" title="<?php echo $GLOBALS['TL_LANG']['MSC']['ls_shop']['miscText070']; ?>">E-Mail</a></li>
</ul>
</div>