Closed (fixed)
Project:
AddToAny Share Buttons
Version:
7.x-3.0
Component:
Documentation
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2011 at 21:30 UTC
Updated:
15 Mar 2012 at 00:22 UTC
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
Comment #1
micropat commentedHi 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. :)
Comment #2
billmp123 commentedHi 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.
Comment #3
micropat commentedDocumentation help would be great! Thanks, Bill. :)
Comment #4
micropat commentedI think we're in pretty decent shape now with both the current documentation and in-module documentation.