-
AuthorPosts
-
January 22, 2016 at 10:56 am #865247
Have you a new Plugin for Share, or some other Idea? The Facebook plugin jafacebooklikebox.v2.6.1 can not Share any Article from Joomla. Because it is a Newspaper Template, it must have to share an Article on Facebook… I think. With Title, and Picture from this one Article i am reading…
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 25, 2016 at 2:33 pm #867819The Plugins in your LInks could not read your Template image_intro. I am sure you can write "us" simply something like this: (this is something old staff from Net)
<?php
$article = JTable::getInstance("content");
$article->load(JRequest::getInt("id")); // Get Article ID
$article_images = $article->get("images"); // Get image parameters
$pictures = json_decode($article_images); // Split the parameters apart
$article_title = $article->get("title"); // Get title parameter
$article_uri = JFactory::getURI();
// Print the image
echo ‘<meta property="og:image" content="’ . $pictures->{‘image_intro’} . ‘" />’;
echo ‘<meta property="og:title" content="’ . $article_title . ‘" />’;
echo ‘<meta name="og:url" content="’ . $article_uri . ‘" />’;
?>If you have successfull tested this, and it is OK, I can put it in Custom Code in Template JA_Teline V. (bevor head) I need a og:Description too. Can you put all the Text until READ-MORE in Description? And then, maybe you have for all your Templates an OG Solution… Thx!
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 26, 2016 at 4:34 am #868486Hi
I am afraid read more functionality is part of core functionality and it take pretty custom work in php such work is out of support scope . You can search open graph extension on Joomla extension directory that will help you to make add OG tag without customization in php files .
below are some links that may help u :
http://joom3.zemplate.com/faq/140-how-to-add-opengraph-meta-tags-to-your-joomla-3-site
http://www.robertwent.com/blog/joomla/69-adding-facebook-opengraph-meta-tags-to-a-joomla-3-template
https://www.dart-creations.com/joomla/joomla-tutorials/add-facebook-open-graph-and-twitter-cards-to-joomla.html -
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum