Page 1 of 1
Embed into HTML index page
Posted: Fri Aug 18, 2006 5:19 pm
by Berg
Is there a simple way to embed the blog into an html page?
I have been reading some posts here about this issue, but can't seem to find a simple answer as my coding skills are not that great.
Thx
Re: Embed into HTML index page
Posted: Fri Aug 18, 2006 5:45 pm
by garvinhicking
Hi!
The most easy way is to edit your "index.tpl" Smarty template file to include the usual layout of your page.
Also the s9y.org documentation contains some references about the "Embed" mode. Also this forum is full of embedding-how tos and problems, so you should take a tour around
Have fun,
Garvin
Posted: Fri Aug 18, 2006 5:46 pm
by Berg
This desribes better want I want to do. Have the latest blog entry appear in my html page.
http://www.s9y.org/forums/viewtopic.php ... ight=embed
Posted: Fri Aug 18, 2006 5:49 pm
by garvinhicking
Hi!
You might want to try the "Show entries via Javascript" event plugin ("serendipity_event_backend"), which allows you to insert some javascript into your homepage to show the latest entries of your blog.
Of course the PHP-way you already found in the thread you linked.
Best regards,
Garvin
Posted: Fri Aug 18, 2006 7:19 pm
by Berg
The Java plug in sounds like it would do the job, however the plug ins can't connect to the server now, is it down?
I get this:
Trying to open URL package_event_en.xml...
The URL
http://netmirror.org/mirror/serendipity ... ent_en.xml could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.
Fetched 203926 bytes from already existing file on your server. Saving file as /home/u4/alphastocks/html/cblog/templates_c/package_event_en.xml...
Posted: Fri Aug 18, 2006 7:49 pm
by garvinhicking
Hi!
Hm, did it work previously for you? When I call the mentioned URL, the file is available.
You can also fetch the file from
http://spartacus.s9y.org/
Regards,
Garvin
Posted: Fri Aug 18, 2006 7:55 pm
by Berg
I had some issues prior, but it has worked fine recently, maybe it's my host, I use Aplus.net...
I tried to to it the other way, from the link I gave you, but what do I need to do with the index.tpl file?
Thx
Posted: Fri Aug 18, 2006 7:59 pm
by garvinhicking
Hi!
The index.tpl method actually only applies if you want to embed the complete serendpity installation into an existing webpage, or if you want to apply your own homepage layout into a serendipity template.
For your means, you should best disregard it and focus on either the PHP or the JS solution.
Best regards,
Garvin