I noticed the code (shown below) in another post that allows the display of the last x number of entries to be shown on a page outside the actual blog's directory. I'd like to do this as well but without the entry text - only the title (with link) and date as it shows up in the recent entries plugin within the blog.
<?php
chdir('serendipity'); // 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 latest entries
$entries = serendipity_fetchEntries();
# Parses the latest entries
serendipity_printEntries($entries);
# Displays the latest entries template
$serendipity['smarty']->display(serendipity_getTemplateFile('entries.tpl', 'serendipityPath'));
chdir('..');
?>
but what I'd like to do is only show the entries in the same format as the Recent Entries show up within the blog. Something like
Can you not adjust the XML output for your board in the configuration area and then feed that into a aggregator or layout program at the desired destination
"The price of greatness is responsibility."
Sir Winston Churchill
You can simply copy the "entries.tpl" file to "myentries.tpl" and there remove all references to the $entry.body stuff etc. Then it will look exactly like you want.
Best 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/
It will display as many entries as you've configured your s9y to show for the startpage (default 15 entries). If you want to show all entries, you need to specify a parameter to the fetchEntries() function in your PHP code.
Best 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/