Project:Share Buttons (AddToAny) by Lockerz
Version:7.x-3.0
Component:Documentation
Category:support request
Priority:minor
Assigned:Unassigned
Status:closed (fixed)
Issue tags:addtoany, API

Issue Summary

Hi,

I'm raising this for people like me i.e. limited in programming experience. I just need a pointer with using the javascript API.

I see clearly where the A2A code is placed in my page html, yet I can't what renders it in any of my tpl files. The A2A documentation is about clear how to mod the script to re-prioritize services (which is what I want to change), but I just can't see where to insert the relevant snippet in any of my template files (if that's how to alter it...)

Apologies if this is obvious to everyone else, but it escapes me!

Thanks

Bill

Comments

#1

Hi Bill,

Good question, and the answer is even simpler than mucking with TPL files. :) For many of the customizations you can copy code from the documentation and paste it into the Additional Options (Additional Script) box located in admin/config/system/addtoany.

For example, to have the menu appear on-click only, you would paste this line of code into the Additional Script box:
a2a_config.onclick = 1;

Now we need to work on getting this documented. :)

#2

Hi Pat,

Damn, now I feel like an idiot :-) That works perfectly, many thanks.

The least I can do in return for all the fantastic, well supported modules I use is to offer to do that documentation job.

The information on that link is fine, but it's platform neutral, naturally enough, so we just need a Drupal specific note linked from the project page don't we? I can put something together & send it over if that's a help.

#3

Documentation help would be great! Thanks, Bill. :)

#4

Status:active» closed (fixed)

I think we're in pretty decent shape now with both the current documentation and in-module documentation.

nobody click here