Page 1 of 1

url to access to one entry

Posted: Wed Jun 22, 2005 9:24 pm
by chepiok
On my homepage I want to make a short remind of the last 5 entries in my blog. I'm making directly a sql access to the tables blog_entries and blog_entrycat and use the field "title" to get the title of the entries and the field "timestamp" to get its date.

Now I want to have a direct link to each of the entries. How can I get the url to get to a specific entry from its id (field "entryid") ? I have configured serendipity to do url rewriting.

Posted: Fri Jun 24, 2005 2:33 am
by vastneonwolf
Have you looked at the Recent Entries plugin?

Posted: Sun Jun 26, 2005 9:14 pm
by chepiok
Yes it's exactly what I want to do but on a PHP page which is not the blog. For the moment I don't know how to display a serenditipy plugin on my page and not only on left or right column of the blog

Looking at the recent entry I found that I should use the function called serendipity_archiveURL and stored in functions.inc.php BUT how can I use this function from OUTSIDE serendipity ?

Posted: Mon Jun 27, 2005 3:01 am
by mgroeninger
I believe you can just use this in your page to use serendipity functions:

Code: Select all

include('serendipity_config.inc.php');
I might be wrong though.