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
embeding with new release
-
digitalmedia
- Posts: 4
- Joined: Sun Jan 30, 2005 5:52 am
embeding with new release
TenmarkMedia.com - Helping to build, maintain and promote your website
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: embeding with new release
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
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
# 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/
# 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/
-
digitalmedia
- Posts: 4
- Joined: Sun Jan 30, 2005 5:52 am