Problem: The shared content title defaults to the site_name variable

The easy_social module sets the share title (ex: when sharing a page through Twitter) to the Drupal site name by default and there is no way to change it. There are cases where the site maintainer may want to adjust it to something else instead, such as the page title, or a combination of different elements.

Proposed Solution:

The attached patch adds an additional admin configuration for each block override that allows setting the share title with content via a text field that is also compatible with tokens.

Comments

angrytoast’s picture

StatusFileSize
new1.84 KB
angrytoast’s picture

Status: Active » Needs review
laryn’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.9 KB

Rerolled @angrytoast's patch on the latest version (and included an example token in the description of the new field, for the current page title).

Tested and it is working well for me. Thanks, @angrytoast!

mediaformat’s picture

The patch and feature works, however if only Twitter uses the parameters, wouldn't it make more sense to add it to the twitter widget rather than the block?

rhormens’s picture

Thanks guys.
I will commit!

Please wait a new release.

rhormens’s picture

  • rhormens committed 1be615a on 7.x-2.x authored by laryn
    Issue #2386745 by angrytoast, laryn, rhormens, MediaFormat: Configurable...
rhormens’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.