Active
Project:
Twitter Pull
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 May 2010 at 02:18 UTC
Updated:
26 Aug 2011 at 09:31 UTC
So If I create a cck nodefield where the person can enter a hashtag, how would I take that, precede it with # and use it for the search term?
Comments
Comment #1
whatsnewsisyphus commentedI intend to display the results dynamically in every node page with a hashtag cck field
Comment #2
irakli commentedYou can either write a theme preprocessor or embed appropriate logic/twitter_pull function call in a node-[type].tpl.php
Comment #3
irakli commentedComment #4
whatsnewsisyphus commentedhow can I do the the theme preprocessor one? I am assuming that the node-type one I can do by printing a node field value within the function
Comment #5
cookiesunshinex commentedCould you share an example of how to do this. I want to do the exact same thing.
I want to have nodes for celebrities or companies for example. I would like to have a CCK field where I can place that Celebrity or Company's twitter ID, and then display the 5 latest tweets on the node for that entity.
Is there an easier way to do what I'm trying to do?
Comment #6
jonivanbogaert commentedHi cookiesunshinex, I'm doing something similar here.
I created a custom user-profile.tpl.php and in that custom file I put: