customizing: embedding outside of the serendipity directory
Posted: Sat May 08, 2004 7:21 am
After a long search for the "best" blog, my brother and I decided on Serendipity. We've got a test installation that is everything we hoped for....well almost.
We want a blog for the site we admin (bswa.org) and think serendipity will be the trick. But we want to do a custom hack and I can't find the documentation of how to do this and messing around with the code on our test installation hasn't revealed the secret yet either.
We've installed s9y in [DOC_ROOT]/news/. All is well.
But I'd really like to have a news feed to our home page at [DOC_ROOT]/index.html (which is actually a PHP page). Basically I want to have s9y running the news section, but also embed just the default news view into an index page that has customized blocks on the left and right. But I can't seem to get anything to work outside of the s9y directory.
I've copied scripts from the [DOC_ROOT]/news/ directory and tried hacking them to make something work but all that comes back is a message telling me I need to install.
What I (think I) need to know is, if I'm writing a PHP script called [DOC_ROOT]/index.html and want to call the default news blocks from the s9y db, which includes do I need and what functions/methods do I need to execute to make this happen?
Any tips appreciated.
/sol
PS: s9y is cool. Can't wait to test the next devel version.
PPS: but why "s9y" = "serendipity"?
We want a blog for the site we admin (bswa.org) and think serendipity will be the trick. But we want to do a custom hack and I can't find the documentation of how to do this and messing around with the code on our test installation hasn't revealed the secret yet either.
We've installed s9y in [DOC_ROOT]/news/. All is well.
But I'd really like to have a news feed to our home page at [DOC_ROOT]/index.html (which is actually a PHP page). Basically I want to have s9y running the news section, but also embed just the default news view into an index page that has customized blocks on the left and right. But I can't seem to get anything to work outside of the s9y directory.
I've copied scripts from the [DOC_ROOT]/news/ directory and tried hacking them to make something work but all that comes back is a message telling me I need to install.
What I (think I) need to know is, if I'm writing a PHP script called [DOC_ROOT]/index.html and want to call the default news blocks from the s9y db, which includes do I need and what functions/methods do I need to execute to make this happen?
Any tips appreciated.
/sol
PS: s9y is cool. Can't wait to test the next devel version.
PPS: but why "s9y" = "serendipity"?