Customize Twitter sharing

More
7 years 3 months ago - 7 years 2 months ago #65681 by hervemlam
Hello,

In my pages I've included social media sharing using AddThis buttons. See this example.

It works fine, but now I'd like to go further: I want to customize for each article the way it is shared. For instance, for Twitter, I'd like to set a particular text including a hashtag and a recipient related to the subject of the article.
(N.B.: I've installed Socialmeta plugin.)

Do you think it is possible and how?

Good night.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5
Last edit: 7 years 2 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #65682 by micker
Replied by micker on topic Customize Twitter sharing
i toolbar field you can load custom code addthis
like for addthis api
www.addthis.com/academy/customizing-the-addthis-toolbox/

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #65689 by hervemlam
Replied by hervemlam on topic Customize Twitter sharing
Hello,

Already saw this page.

The code I modify in the toolbar field impacts all articles.
I'd like to customize the social sharing text for a given article.

I know I can do it with some javascript code like:
Code:
var addthis_share = addthis_share || {} addthis_share = { passthrough : { twitter: { via: "hervelam", text: "#japprecie @yannpierremeray" } } }

But is it possible to set this kind of code at the article level? If so, where?

Good night.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #65690 by micker
Replied by micker on topic Customize Twitter sharing
sorry but can you explain more what you want to do ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago - 7 years 3 months ago #65693 by hervemlam
Replied by hervemlam on topic Customize Twitter sharing
For the moment, if you click on the Twitter button in the toolbar of this article , you generate a tweet like this:


Which is not bad. But I'd like to go further. Instead of "Yann Pierre - Chansonneur" above the frame, I'd like to have another text, let's say "#japprecie @yannpierremeray Chansonneur, via @hervelam", for instance.

And for another article , the generated tweet is:


And I want the text to be for instance: "#japprecie l'album de Frédéric Fromet #annuletout cc @LesMeuricettes, via @hervelam".

Do you understand better now?

I bet this can be achieved at least with some javascript code (unless there is a better method?), but I need to have a different javascript code for each article. How could I do?

HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5
Attachments:
Last edit: 7 years 3 months ago by hervemlam.

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #65704 by ggppdk
Replied by ggppdk on topic Customize Twitter sharing
Hello

there is no option for different display / different configuration of the toolbar field per item

Solution can be to disable FLEXIcontent toolbar field (or only in item disable the social sharing) and then use a Joomla content or system plugin that support this,
- e.g. by adding some plugin text in description field.


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.290 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline