Giorgi625 VIP
Total posts: 655
16 Oct 2017 19:00

How do you add social sharing buttons to your records?

There is field in depot addthispro but I was not able to get needed result with this field.

I am using JFB Connect for Social Login so now checking its documentation if it will allow me to use its button in cobalt.

Also please if you use different solution please give a suggestions hwo do you add opengraph tags and sahring buttons to your cobalt records?

Last Modified: 17 Oct 2017


KEZEO
Total posts: 12
16 Oct 2017 20:08

hello i used addthispro but it works very bad


Giorgi625 VIP
Total posts: 655
16 Oct 2017 20:55

KEZEO hello i used addthispro but it works very bad

Yes I have set Description and Image fields by ID but it only displays image and page title, not description.

I am wondering if there is possible to add some atribute (og tag) to each fields int tempalte file which I want to display in shared item ?

In all tutorials I see only samples where you need to add static content in meta tags liek this

<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content=" http://www.imdb.com/title/tt0117500/ " />
<meta property="og:image" content=" http://ia.media-imdb.com/images/rock.jpg " />

But is it possible to somehow add into content specific field values?


Giorgi625 VIP
Total posts: 655
17 Oct 2017 09:07

By adding shortcode tags of JFB Connect I was able to get acceptable result for this moment.

It is now sharing posts from cobalt with title, image and description, but it takes description from meta description, also title is taken from page title, but I want to show there record title.

I will try to find if I can set as a title and description specific fields from Cobalt CCK.


pepperstreet VIP
Total posts: 3,837
17 Oct 2017 14:52

Giorgi625 I will try to find if I can set as a title and description specific fields from Cobalt CCK.

Maybe JoomBoost field solutions in Depot are a handy resource. I believe the crucial code parts should also apply to Cobalt templates. To my knowledge, JoomBoost templates have the functionality build-in.


Related docs:

Generate meta data from Cobalt data
(How to generate metadata you want in custom templates)

Customize article templates
(How to create custom record templates & how to get fields data)

Powered by Cobalt