Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • dpchap015 Friend
    #200282

    Hello 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 working

    Adam M Moderator
    #545137

    Hi,

    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 Friend
    #545160

    Hi,
    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 Handler

    2) 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 Moderator
    #545190

    Hi,

    Thanks for your detailed explain but I’m afraid that this question is beyond support scope and you might want to submit your question here for better assistance instead.

Viewing 4 posts - 1 through 4 (of 4 total)

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