Views integration would be really awesome. Love the module, thanks!

Comments

corbacho’s picture

Thanks jrowny.
Views integration I suppose you mean exposing to Views the counting of retweets.

I think that can be useful but is difficult to achieve because the counting is not stored in the database or processed in the module itself. This value is loaded dinamically via javascript from their servers once that the page is loaded.

Anyway I will have it in mind and leave this issue open to suggestions/brainstorming.

jrowny’s picture

Topsy supports multiple per page pretty well. It's a little bit slow, but not bad. I have implemented this in views using views themeing. See here: http://www.klutchonline.com/

corbacho’s picture

Cool :) Good integration.

How did you do it ? Calling directly to theme_topsy_button from a view template?

Note that I just updated the module (beta1) to better integration with Views.
So now if you are using the module "CCK Topsy Retweet Button", then it should provide automatically a field for Views: "Content: field_topsy" or whatever name you gave to the field from CCK

It's better documented in the README.txt

jrowny’s picture

Yea, I just icnluded

<script type="text/javascript" src="http://cdn.topsy.com/topsy.js?init=topsyWidgetCreator"></script>

and then included

<div class="topsy_widget_data"><!--
    {
        "url": "http://www.klutchonline.com/blog/flush-fitted-hats",
        "title": "FLUSH FITTED hats",
        "style": "big"
    }
--></div>

via a theme file for the "path" field.

On my site, http://www.jrowny.com I put the settings in the javascript so it loads a bit faster.

corbacho’s picture

jrowny , if you are using this module still, notice that has been deprecated and Topsy will discontinue the service on 12th of Feb