Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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