Page 1 of 1

general question about costumization

Posted: Tue Nov 04, 2008 12:27 pm
by slim-online
hello together!

i haven't tried serendipity yet and before i start i would like to know if it's possible to integrate just parts of serendipity into an existing webpage, like.... (rough example)

<?php include 'blogentries.php'; ?>
<?php include 'categories.php'; ?>
<?php include 'archive.php'; ?>

...and so on. i hope my question was clear enough :)

thanks for your help!

kind regards from vienna,
slim

Re: general question about costumization

Posted: Tue Nov 04, 2008 1:09 pm
by garvinhicking
Hi!

Yes, actually you can do that. Serendipity is built like a framework, with it's central API parts. You can rip those out and put them into a foreign page, call plugin outputs, blog entries, header data etc. Most is done through teh PHP functions "serendipity_fetchEntries", "serendipity_printEntries" and serendipity_plugin_api::hook_event('...'). Much of this is also explained in the s9y wiki inside the technical documentation.

HTH,
Garvin

Posted: Tue Nov 04, 2008 1:24 pm
by slim-online
hey garvin,

thank you very much... i have to admit your explaination was already a little bit to technical for my state of knowledge but i'll try to find out how it's working! :)

as i understood it's not as easy as "include" but somehow possible, right? :)

thanks again, slim

Posted: Tue Nov 04, 2008 1:56 pm
by garvinhicking
Hi!

That's right, it's not as easy as using include. Some general PHP knowledge is required, but this is as easy as it gets -- other blog engines require you to know much, much more.

Check out http://www.s9y.org/206.html and http://www.s9y.org/78.html for bloody details :-)

Best regards,
Garvin