-
AuthorPosts
-
dpchap015 Friend
dpchap015
- Join date:
- September 2011
- Posts:
- 300
- Downloads:
- 75
- Uploads:
- 57
- Thanks:
- 1
- Thanked:
- 24 times in 1 posts
August 6, 2014 at 7:24 am #200282Hello I need help
i am trying to add twitter cards on my site , but facing issue in case of images , twitter not showing images ,
can you let me know which code i will use for images . i am doing editing in
/library/joomla/document/html/render/head.php ..
everything is working except image .
i tried $image ,
$article_images->image_fulltext
but not workingAdam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
August 8, 2014 at 4:16 am #545137Hi,
Could you please clarify about your problem a little bit so I can assist you better ? In addition, please provide your site url so I can take a look as well.
dpchap015 Frienddpchap015
- Join date:
- September 2011
- Posts:
- 300
- Downloads:
- 75
- Uploads:
- 57
- Thanks:
- 1
- Thanked:
- 24 times in 1 posts
August 8, 2014 at 5:54 am #545160Hi,
I have a need of calling custom social field data in the site’s meta.
Here is exactly what I need:
I have user’s profiles with one of the fields as “Twitter Handler”. The users are my authors also. So I am trying to create twitter cards. To do so I need the following meta in the head of my site:twitter:card => Defines the type of twitter card like summary, player, photo, galary, etc.
<meta property=”twitter:card” content=”summary” />twitter:site => Twitter Holder of the Site where the content appeared
<meta name=”twitter:site” content=”@mysite_in”>twitter:title => Tweet Title (70 Characters)
<meta name=”twitter:title” content=”Tweet Title”>twitter:description => Card Description text [200 characters]
<meta name=”twitter:description” content=”Description”>twitter:creator => Content author’s twitter handler
<meta name=”twitter:creator” content=”Author’s Twitter Holder”>twitter:image:src => Image source for the card image (>60x60px)
<meta name=”twitter:image:src” content=”Image Source”>twitter:domain => Domain to appear on the site
<meta name=”twitter:domain” content=”mysite.com”>twitter:url => Destination URL
<meta property=”twitter:url” content=”Destination URL” />I have been able to get all the necessary metas by editing the head.php in joomla/library/…….
I am stuck with 2 thinkg majorly:
1) Author’s Twitter Handler2) Image
Since I have create a field called “Your Twitter Handler”; how can I get the joomla to identify the author of the article and then fetch the twitter handler from this field and put is as <meta name=”twitter:creator” content=”twitter.com/authors-profile”>
Please keep in mind that article on my site can be authored by any person having an account on my website so the twitter author field must fetch author’s twitter handler dynamically corresponding to the article being shared.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Adam M 10 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum