• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: need meta tags for news module, must work with pretty urls
PostPosted: Mon Dec 26, 2016 4:23 pm 
Offline
Forum Members
Forum Members

Joined: Sat May 29, 2010 6:03 pm
Posts: 52
I need help with Facebook sharing for individual posts in the news module. Must work with pretty URLs. I also need help with Disqus comments. Contact me for details.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: need meta tags for news module, must work with pretty ur
PostPosted: Fri Dec 30, 2016 12:05 am 
Offline
Forum Members
Forum Members

Joined: Sun May 23, 2010 10:22 pm
Posts: 44
Hello,

With here what I use in news for facebook, twitter, google+, linkedin:
Code:
{if isset($entry->canonical)}
                    Deel dit bericht:  
                    {*
                    <a href="https://www.facebook.com/sharer/sharer.php
                    ?u=https%3A%2F%2Fjonsuh.com%2F"
                    target="_blank">Share on Facebook</a>
                    *}
                    <a href="https://www.facebook.com/sharer/sharer.php?u={$entry->canonical|escape:'url'}" target="_blank" class="social-icon-ar sm no-margin-bottom facebook"><i class="fa fa-facebook"></i></a>
                    {*
                    <a href="https://twitter.com/intent/tweet/
                    ?text=Visit%20my%20website
                    &url=https%3A%2F%2Fjonsuh.com%2F
                    &via=jonsuh
                    &hashtags=web,development"
                    target="_blank">Share on Twitter</a>
                    *}
                    <a href="https://twitter.com/intent/tweet/?text={$entry->title|escape}&url={$entry->canonical|escape:'url'}" target="_blank" class="social-icon-ar sm no-margin-bottom twitter"><i class="fa fa-twitter"></i></a>
                    {*
                    <a href="https://plus.google.com/share
                    ?url=https%3A%2F%2Fjonsuh.com%2F"
                    target="_blank">Share on Google+</a>
                    *}
                    <a href="https://plus.google.com/share?url={$entry->canonical|escape:'url'}" target="_blank" class="social-icon-ar sm no-margin-bottom google-plus"><i class="fa fa-google-plus"></i></a>
                    {*
                    <a href="https://www.linkedin.com/shareArticle
                    ?mini=true
                    &url=https%3A%2F%2Fjonsuh.com%2F
                    &title=Jonathan%20Suh
                    &source=https%3A%2F%2Fjonsuh.com%2F
                    &summary=Short%20summary"
                    target="_blank">Share on LinkedIn</a>
                    *}
                    <a href="https://www.linkedin.com/shareArticle?mini=true&url={$entry->canonical|escape:'url'}&title={$entry->title|escape}&source={$source_url|escape:'url'}" target="_blank" class="social-icon-ar sm no-margin-bottom linkedin"><i class="fa fa-linkedin"></i></a>
                    {/if}


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: [SOLVED] need meta tags for news module  [DONE]
PostPosted: Fri Dec 30, 2016 2:55 pm 
Offline
Forum Members
Forum Members

Joined: Sat May 29, 2010 6:03 pm
Posts: 52
Thanks for your reply. I was able to solve the problem by changing my news items to regular content items. I already have the meta tags working for normal content items. It's not a perfect solution but it works.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
HostPapa CMS Made Simple hosting