Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Taskbar provides a taskbar with AJAX blocks, periodic refresh regions where modules can send updates/status. And more!
Taskbar has a very flexible design so that many providers can coexist. Each provider in its turn can support multiple data sources.
Examples
Embed the Google +1 button
It's quite easy to embed the Google +1 button.
- Go to admin/build/taskbar, click Add
- Choose a name, select the Custom provider
- Paste the following text (from Google's instruction):
<!-- Place this tag in your head or just before your close body tag --> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <!-- Place this tag where you want the +1 button to render --> <g:plusone size="medium"></g:plusone>
- Click Save item
- Select a region (left/center/right) for this item.
That's it.
In the future, the Google +1 module can integrate this feature into Taskbar. But for now, this is the easiest way to achieve the task.
Embed the Facebook Like button
Take exactly the same step, but use the following code:
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=217685481595866&xfbml=1"></script>
<fb:like href="" send="false" layout="button_count" width="100" show_faces="false" font=""></fb:like>