Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Great module. Works like a charm.
I was wondering how I would go about changing the text that is prefilled into the Linkedin share-box.
Right now, the node title is taken as a title and (in my case) the third paragraph of my body field is taken as body. (weird)
I was wondering where I would change this?
I've already found this function in easy_social.widgets.inc
function _easy_social_widget_linkedin_markup($url, $type, $title = NULL, $lang = 'und') {
// this widget doesn't yet offer a localization option
// correct for different language identification strings
// if ($lang === 'en') {
// $lang = 'en_US';
// }
// @TODO use "data-onsuccess" to track successful shares
// this will likely be in either a seperate module or a new version
$type = ($type == EASY_SOCIAL_WIDGET_HORIZONTAL) ? 'right' : 'top';
$markup = <<<LI
<script type="in/share" data-url="{$url}" data-counter="{$type}"></script>
LI;
return $markup;
}
I'm guessing the "LI" is a parameter that is being filled somwhere else, but I cannot find where ...
thanx
Comments
Comment #1
MediaFormat CreditAttribution: MediaFormat commentedThe text in the share box is scraped rather arbitrarily by linkedin.
To explicitly state which info LinkedIn should use requires configuring Open Graph tags, see the Metatag module.