Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

could anybody direct me to the right place on the website to find out how to make a news feed

for a website i am making, i want to make a news feed table on the side of my page and i need to know where i could learn a language that would allow me to do this. would it be php? ruby? any help would be great

2 Answers

Slightly depends on how this is going to function. Is it news you yourself create? Or is it going to pull from an existing service like the BBC or CNN and display the latest news from a source like that? If it is pulling from an external source, then you need to find a news service with an API or RSS feed that you can use to get the 'latest news' information. Then you could use either JavaScript (AJAX call), or PHP to call that API or RSS feed when the page is loaded to get the news services latest news, and format it to your sidebar. If this is news you create, it could be as simple as static HTML and CSS that you update with your own content whenever you have 'news' to announce. To make things easier you could use something like Wordpress or Drupal as a content management system (CMS) to aid in writing new news stories. I have a feeling you're looking to pull from an existing news service though, is that correct?

If you're making an activity/new feed for user actions on your website (adding a comment, posting, etc) you could use something like this activity gem for a ruby on rails site.

It's worked well for me.

-twiz