Customize Twitter sharing

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

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

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

Just to let you know that I managed to achieve it.
If anybody's interested, let me tell you what I did.

I created a new textarea field (that I named "perso_twitter".
In this field I entered the following properties (these are the start and end of the common text that I want in Twitter sharing for all items).
Opening text for Field:
Code:
<script type="text/javascript">var addthis_share = addthis_share || {}; addthis_share = { passthrough : { twitter: { via: "myTwitterAccount", text: "#myHashtag
Closing text for Field:
Code:
" } } }</script>
See screenshot. Note the Display label=No, so that the field label is not displayed on the screen.
I included this field in a position (at bottom).
And populated each of my items with the wanted value for this field, i.e. the specific item-related text that I want to appear in Twitter sharing (including hashtags or concerned Twitter accounts!)

Simple indeed. And it works!

Good night.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5
Attachments:

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

More
7 years 2 months ago #65991 by ggppdk
Replied by ggppdk on topic Customize Twitter sharing
Hello

Ok thanks for feedback,
a note , entering SCRIPT tag into textarea will work only if
- you allow it via appropriate field configuration (the validation parameters)


-- 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.286 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