Embedding the Blog into an HTML file

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Vince-umi

Embedding the Blog into an HTML file

Post by Vince-umi »

Hi all,

Here's my problem: I'm trying to integrate the Blog into my existing web site. Yep, nothing new so far... :wink:

After researching this forum, I found a few entries explaining how to proceed to embed it into a PHP environment (including this site's instructions) but nothing about HTML.

Here's where I'm at so far. I've managed to embed it into a page of the site and have it appear where I want it on the page. For that I had to turn the embed option OFF, I don't know why, tweak the CSS of both my page and the blog's, and call the index.php from within a table.

From there I have changed it a bit so that I can go to the administration panel and then come back to the embedded blog.

But I can't seem to find the way to also have the entries themselves (and the Comments) open still inside the embeded page. I suppose that I will have to start from scratch and turn the Embed option back on, I just don't know where to look since I don't really use headers and footers in my HTML design (I have DIVs).

I'm not desperate because I've put on the Entries page an HTML Nugget with a link back to the embedded page; it's just too bad to loose the site's look and feel...

Thanks in advance for any advice!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Embedding the Blog into an HTML file

Post by garvinhicking »

The easiest thing for you would be to use Serendipity 0.8 and then use the Smarty *.tpl HTML templates to modify anything you need.

The idea of the 'embed' directive turned on is that you will no longer have <html> and <body> tags emitted by Serendipity, but need to do that yourself. As soon as you've activated that directive, you can edit your templates/yourtemplate/layout.php and put all HTML code inside the PHP file (but outside of <?php and ?> blocks!)...please see our www.s9y.org Documentation, there are a bit more detailed explanations...

If you need further help, you'll need to show us your code :-)

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