Page 1 of 1

embeding with new release

Posted: Mon Apr 18, 2005 7:45 pm
by digitalmedia
K I have searched the forum and read the docs, but I still can't find somewhere that tells me what I should be doing to embed the blog within my site when using the newest release of serendipity.

I have enabled embeding, but I need to now embed it into my html template, how do I do this? All the information on embeding is geared towards the older releases, not the new one.

Can anyone help me out? Point me in the right direction if I've missed something in my searching and reading...

Thanks

Re: embeding with new release

Posted: Mon Apr 18, 2005 9:28 pm
by garvinhicking
The current release can be embedded basically the same way as before, using layout.php.

But with the new system its much easier to embed stuff via Smarty templating. Just create a new template, edit the index.tpl and insert custom Smarty calls into your index.tpl template. You can write up your own config.inc.php file which assigns variables via $serendipity['smarty'] easily. So you can create a smarty function which just assigns all your surrounding HTML as {$HEADER} and {$FOOTER} for example.

Please read the style and smarty embedding docs on www.s9y.org for further instructions on this.

Regards,
Garvin

Posted: Mon Apr 18, 2005 10:28 pm
by digitalmedia
thanks that explains it more :)