Customize Twitter sharing

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.

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

Thanks, but where are these "validation parameters"?
I searched everywhere in field configuration for this given field, and didn't find anything that looks like "validation parameters".

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 #65998 by ggppdk
Replied by ggppdk on topic Customize Twitter sharing
Hello

parameter name is :
Server-Side validation

TAB: "Editing"
Sub-TAB: "Values"


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

More
7 years 2 months ago #66002 by hervemlam
Replied by hervemlam on topic Customize Twitter sharing
Oh I see. Thanks! I must have been blind, not having seen it.

However... the value currently is "Joomla's Text Filters (per usergroup)" - and it seems it works, so is it recommended to change it?
(I am the only backend user of my site.)

I'm not sure of what the other values mean - even after reading the online help tips :-(

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 2 months ago #66003 by ggppdk
Replied by ggppdk on topic Customize Twitter sharing
Hello

The "Joomla text filters" means that every user will be allowed different HTML tags
- the above is according to Joomla Global configuration "Text filters" TAB

e.g. SCRIPT Html Tag is by default only allowed to Super Admin

- if a non-Super Admin edits and saves the item, then SCRIPT Html Tag will be removed

but the above is a good thing, because SCRIPT tag can be used malicious by non-trusted users


-- 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...
The following user(s) said Thank You: hervemlam

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.060 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