Topic: Displaying list of posts on another site

Hi,

I wonder how i can do thing i mentioned in subject. What i mean:

I have site, lets say: http://mysite.com
NibbleBlog is installed in: http://mysite.com/news

I want to show 5 latest titles of posts from NibbleBlog (http://mysite.com/news) on main site (http://mysite.com) as a links to the news site.

Or maybe better explaination:
Go to: admin/post.php?pag=list.
I want to have such list of posts on mysite.com, not only on mysite.com/news

How can i do that? I thought it was easy with include function and changing some php files, but it's not so easy. My mind is in the middle of nowhere, and i have no idea how to do that.

Greets

Last edited by kmd (23-07-2010 15:37:22)

Re: Displaying list of posts on another site

kmd wrote:

I want to show 5 latest titles of posts from NibbleBlog (http://mysite.com/news) on main site (http://mysite.com) as a links to the news site.

Once published, the articles are available (in XML) in ./content/public/posts/. You can just write a small script at the root of the site to read and send the title of the last five articles with links to them.

To avoid having to parse XML manually, use PHP's XML functions. An example of this can be found in ./includes/index_main.php.