Quantcast
Channel: Open Data - Drupal Configuration
Viewing all articles
Browse latest Browse all 20

Link to twitter status message from Drupal twitter module repost

$
0
0
Searched words: 
twitter module token availability link twitter status messages to twitter.com post

Link twitter status messages to the twitter account display of these status messages.

Resolution

Edit the view Twitter module created at admin/build/views/edit/tweets. For Agaric's purposes in this case we chose to edit the default settings for the view (the "Tweets" display).

Add the fields:

Twitter: Login name Login name
Twitter: Status ID Status ID

For both, select "exclude from display".

And-- this part is crucial -- drag them to the top of the field list. (When looking at the Fields block there in the Views admin page, click the up-down arrows at the left of the title "Fields" to get the drag-and-drop reordering interface to appear below.)

Then edit the Twitter: created time field (that's the one we chose to link) and make a custom link for it. The account name and the status ID number will be available for tokens for the link because of the fields you added, so you can construct the link like so:

http://twitter.com/[screen_name]/status/[twitter_id]

For fun, we gave the alt (title?) text [screen_name] tweet ID [twitter_id]

and made the date format the Custom date format:

D, M j, g:i a


Viewing all articles
Browse latest Browse all 20

Latest Images

Trending Articles





Latest Images