Hi,

in views we have the addtoany field which is great however:
1./i'd like to decide which url to share also
2./i'd like to use custom (multiple, dedicated) pics for certain socail websites.

So i tried following things:
1./ I added a global text field with following code in it:

<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_twitter"></a>
    <a class="a2a_button_google_plus"></a>
    <a class="a2a_button_pinterest"></a>
    <a class="a2a_dd" href="http://www.addtoany.com/share_save"></a>
</div>

<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

I't works fine except i want to share my dedicated url (which is my node in my case (that comes with a url field, so i have the url as a token). So i've tryed to share a custom url ( i added a href to each a class):

<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
    <a class="a2a_button_facebook" href="node/5"></a>
    <a class="a2a_button_twitter" href="node/5"></a>
    <a class="a2a_button_google_plus" href="node/5"></a>
    <a class="a2a_button_pinterest" href="node/5"></a>
    <a class="a2a_dd" href="http://www.addtoany.com/share_save" href="node/5"></a>
</div>

<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

From the API i belive it should work. If that's correct probably my url is overriden in code somewhere.

Any idea for any solution?

Thanks guys

Comments

micropat’s picture

Category: Bug report » Support request
Status: Active » Closed (outdated)

Old support issue.

Per your original use of general (not Drupal-specific) AddToAny HTML code, you can set a specific URL to share, otherwise the current URL will be shared by default.

micropat’s picture

Issue summary: View changes