I tried to use tokens in addtoany settings, i saw that there is no support in rc and in dev version.
I need tokens in case of share email or other custom share buttons.

I did a first patch to have this working.

Comments

ziomizar created an issue. See original summary.

ziomizar’s picture

Issue summary: View changes
ziomizar’s picture

Issue summary: View changes
ziomizar’s picture

StatusFileSize
new1.81 KB

Check if token is enabled and limit replacement to node entities to respect addtoany settings.

ziomizar’s picture

StatusFileSize
new1.82 KB

Limit browser token to node and current page

ziomizar’s picture

Status: Active » Needs review
ziomizar’s picture

StatusFileSize
new2.61 KB

Replacement for additional javascript

ziomizar’s picture

StatusFileSize
new2.6 KB

fixed whitespace

ziomizar’s picture

StatusFileSize
new2.59 KB

Removed current-page from token browser #token_types

  • ziomizar authored 176feea on 8.x-1.x
    Issue #2760383 by ziomizar: Token support
    
micropat’s picture

Status: Needs review » Fixed

Thanks ziomizar!

Token support makes AddToAny email templates and Twitter templates a lot more dynamic, i.e...

Additional JavaScript using the [node:author:display-name] token in a Twitter template:
a2a_config.templates.twitter = "Check out ${title} ${link} by [node:author:display-name]";

This patch should land in version 8.x-1.5.

Status: Fixed » Closed (fixed)

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