Etomite Community Forums: How Import external RSS to my page...? - Etomite Community Forums

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How Import external RSS to my page...? as in topic... trying to find some snippet or something

#1 User is offline   lunar 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 5
  • Joined: 07-February 05
  • Location:Poznan
  • Interests:mtb, gfx, webdesign, cartography

Posted 18 June 2009 - 09:20 AM

Hi Guys!

I`m improving my site, and i wanted to import some threads from my blog (based on WordPress) to homepage.

I don`t want to integrate WordPress with my etomite instance - i`m just wondering if is there any simple way to fetch RSS feed and display it as text-content in my template...?

Any ideas!?

#2 User is offline   mikef 

  • Loves Etomite Forums!
  • PipPipPipPip
  • Group: Member
  • Posts: 1,546
  • Joined: 30-August 05
  • Gender:Male
  • Location:Cheshire, UK
  • Interests:Photography, Gardening for Wildlife

Posted 18 June 2009 - 10:19 AM

View Postlunar, on Jun 18 2009, 10:20 AM, said:

Hi Guys!

I`m improving my site, and i wanted to import some threads from my blog (based on WordPress) to homepage.

...

Any ideas!?

See the earlier thread on using RSS feeds

I use a snippet derived from the lifestream snippet on a couple of my sites - the news page (and home page) on mike finley photography, and on the news page on the efikim gallery

#3 User is offline   Cris D. 

  • Loves Etomite Forums!
  • PipPipPipPip
  • Group: Member
  • Posts: 1,063
  • Joined: 10-August 06
  • Location:Brisbane, Queensland, Australia

Posted 18 June 2009 - 10:20 AM

There are a few ways of tackling this.

clunky non-technical solution 1) use a 3rd party feed aggregator and use the wrapper snippet to embed it in a page using an iFrame.

semi-clunky solution 2) Pull the feed into a snippet using xml php functions (depending on the php version running on your host)- really requires php 5... and mark up the feed from the xml include by using a chunk and parsing it before rendering it on the page.

technical solution 3) Create a new etomite document with the content type of xml and create a new template that uses an XSL style sheet and embed the feed (using an include or other method) into the document as pure XML, then using a snippet like getSideBar or a snippet to get the contents and display it on another page as marked up text.

technical solution 4) use a snippet to read a feed and write it to a text file with html markup, then use the contents of that file to display in a page. Automatically delete and re-create the file based on the TTL settings of the feed (or other timing depending on how much you want to punish or protect the targeted server).

Unless someone else has created a feed reader for etomite, I don't think there's an easy out-of-the-box solution for what you are after.

[EDIT] - What Mike said.[/EDIT]

This post has been edited by Cris D.: 18 June 2009 - 10:23 AM


#4 User is offline   lunar 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 5
  • Joined: 07-February 05
  • Location:Poznan
  • Interests:mtb, gfx, webdesign, cartography

Posted 30 June 2009 - 09:00 PM

Aiiight. Thanks for info. Looks like i have to click a bit :)

XML doc inside etomite structure and listing via existing snippets seems to be the best way for me.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users