url to access to one entry

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
chepiok
Regular
Posts: 7
Joined: Tue Jun 07, 2005 10:14 pm

url to access to one entry

Post 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.
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

Have you looked at the Recent Entries plugin?
chepiok
Regular
Posts: 7
Joined: Tue Jun 07, 2005 10:14 pm

Post 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 ?
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post 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.
Post Reply