Customize Twitter sharing

More
9 years 3 months ago - 9 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: 9 years 2 months ago by ggppdk.

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

More
9 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
9 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
9 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
9 years 3 months ago - 9 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
Last edit: 9 years 3 months ago by hervemlam.

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

More
9 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 review. Thanks!

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

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

I thought - and still think - this could be achieved by javascript code, like I said:
Code:
var addthis_share = addthis_share || {} addthis_share = { passthrough : { twitter: { via: "hervelam", text: "#japprecie @yannpierremeray" } } }
At least I want to try.
I found you wrote this:

3. If you want different JS for every item, then you can create a textarea field
and set its filtering to none

here
Could you tell me more about it please?
How is this textarea included into the item? Does it have to be displayed or not? What's the syntax I have to key in this textarea field? (I mean, the above code embedded into <script> .... </script>, or something else?)
And what do you mean with "set its filtering to none"?

Thanks for your help.
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
9 years 2 months ago #65907 by hervemlam
Replied by hervemlam on topic Customize Twitter sharing
Hello,

Could you answer my questions above please?

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
9 years 2 months ago #65908 by micker
Replied by micker on topic Customize Twitter sharing
désoler c'estdéjà du boulot de gerer flexi ... difficile de t'aiider sur du dev externe, j'espere que tu comprendras

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
9 years 2 months ago - 9 years 2 months ago #65911 by hervemlam
Replied by hervemlam on topic Customize Twitter sharing
Hello,

Of course I understand.
I'll search the external part by myself.

But please help me with the 'internal' part: How can I insert a FLEXIcontent textarea field so that the browser reads the source code inside, instead of a value only?

And what does "set its filtering to none" mean?

Good night.
HervE

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

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

Moderators: vistamediajoomlacornerggppdk
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
Save