Integrating blog posts within confine of website (Andreas01)

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Wes Ide
Posts: 1
Joined: Thu Aug 31, 2006 11:28 am
Contact:

Integrating blog posts within confine of website (Andreas01)

Post by Wes Ide »

Hello everyone!

I've been working on a website using a modified version of the andreas01 v1.3 template

I just installed serendipity, and browsed themes, and saw some by andreas, but not 01.

Anyways, what I am wondering is if I can incorporate serendipity directly into the same look of my website, such that a visitor clicking the "Blog" menu button can read blog entries as if they are embedded directly into the site as its own section.

Can anyone tell me if (and how) that can be done?

Thank you so much! :)
~ Wes Ide ~
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Integrating blog posts within confine of website (Andrea

Post by garvinhicking »

Hi!

There are two ways to deal with that:

Either you create your own template and just put your usual HTML constreuct in the index.tpl file. This is the easy way, but includes overhead as you will have your own template and the serendipity template to maintain/modify.

The second way is called "Embed" mode, and is documentedon www.s9y.org. It basically is a config option in s9y that instructs s9y to only output the "content" part of the blog. Then you can use PHP scripting to include that content part in any framework you like that supports PHP code execution. It is a bit hard to fiddle with to get it set up, but in the end it does not include overhead and makes you able to have the rest of your framework code available within serendipity.

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