Page 1 of 1

Embedding Stuff into Serendipity, Not Vice Versa???

Posted: Fri Sep 17, 2004 8:09 pm
by ccruzdal
Hi,

I am planning to do a web site which includes a little more than just a blog. Similar to Jannis Hermanns' homepage (http://www.jannis.to/), I would like it to contain some more pages, such as "About", "Contact", "Projects", and so on. Some of these would contain pages that would contain PHP code -- e.g., the "Contact" page for a simple form that visitors can use to mail me. Now my issue is how I can do this in the most elegant way, i.e. that I do not break compatibility with future releases of Serendipity.

I know that many of you will suggest using the embed mode -- just one remark regarding that: I like the Serendipity themes, and I would actually use one for my blog, hence I would rather embed the rest of my page into Serendipity than vice versa.

I would be extremely glad for any type of advice, hints, etc. I am sure anyone else has faced the same situation.

Thanks,

Chris

PS. Jannis, if you are reading this, how did you do it on your web site?

Posted: Sun Sep 19, 2004 7:38 pm
by dand
What I did for my site (whose server is dead right now unfortunately) is to add the main site's navigation menu to a Serendipity theme's template file, and enclose all the serendipity stuff inside of the "mainContents" div. You also have to make sure serendipity uses the main CSS file.

Daniel

Posted: Thu Oct 21, 2004 10:07 am
by martinmtj
How did it work for you. Have you succeded in embedding you site into Serendipity?

/Martin

Posted: Thu Oct 21, 2004 9:11 pm
by jhermanns
martinmtj: the reason it works with my site is, that it's skinned completely through css! if you have a look at the sourcecode (html), you'll see that there's no layouting or something alike in there. it's all in the css.

so the blog and the other pages are completely separated, but due to the css it all looks the same :)