general question about costumization

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
slim-online
Posts: 2
Joined: Tue Nov 04, 2008 12:14 pm
Location: Vienna, Austria
Contact:

general question about costumization

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: general question about costumization

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
slim-online
Posts: 2
Joined: Tue Nov 04, 2008 12:14 pm
Location: Vienna, Austria
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply