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.
url to access to one entry
-
vastneonwolf
- Regular
- Posts: 43
- Joined: Sun May 22, 2005 6:57 am
- Contact:
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 ?
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:
I believe you can just use this in your page to use serendipity functions:
I might be wrong though.
Code: Select all
include('serendipity_config.inc.php');