Thanks for your help.
I've tried it and it works! Thanks!
Got a couple of problems...(I am not that experienced).
This is the
http://www.xcalak.info/scripts/blog/index2.php contents:
<?php
chdir('blog'); // Or change this to the name of the directory where you installed s9y in!
# Include the s9y framework
include 'serendipity_config.inc.php';
# Initialize Template logic
serendipity_smarty_init();
# Fetch the 5 latest entries
$entries = serendipity_fetchEntries(null, true, 5);
# Parses the latest entries with the embedded template
$serendipity['template'] = 'embedded';
serendipity_printEntries($entries);
# Displays the latest entries
$serendipity['smarty']->display(serendipity_getTemplateFile('entries.tpl', 'serendipityPath'));
chdir('..');
?>
A. Error
http://www.xcalak.info/scripts/blog/index2.php produces the error:
Warning: chdir(): No such file or directory (errno 2) in /home/xcalak/public_html/scripts/blog/index2.php on line 2
If I comment out the line
chdir('blog'); // Or change this to the name of the directory where you installed s9y in!
then it seems to work.
Should I comment out this line?
B. HTML
The result of the entries.tpl is a page without <head>, <body> etc.
Should I add that code to the entries.tpl file?
C. Layout
I am having some trouble removing code from the
http://www.xcalak.info/scripts/blog/tem ... ntries.tpl file. When I take out more then I have done now then I get errors. I have tried several times but it keeps on going wrong.
I would like it to look like this:
Sunday, July 2. 2006
Restaurant Report
Posted by: Cliff Evans
In: Reports From South Of Town
On: 04:37, 27 June 2006.
New building info
Posted by: Judy Hagmann
In: Building Casa Escondida
On: 08:09, June 26. 2006.
Could you please advise how to create the code for this.
D. Style sheet
I would like the index2.php result to look like the rest of the site.
Can I link it to the site style sheet or can I make a separate style sheet for this page within the embedded template structure?
E. Links
The links in the index2.php page point to the same window.
I am planning to include the index2.php in my main page by means of a small iframe. The result would be the weblog would appear in this small window instead of replacing the top page or go to a blank page. Is there a solution for this? (Can this be done in de style sheet?)
Thanks,
Hanno