Hi!
Well, that's a bit more complicated. But since serendipity is flexible, you do have some options.
Let's go through them:
1. If you only post one entry a day, you could just go into your s9y configuration and set the "number of entries per page" to "1".
2. You could setup a custom index file that forwards the user with a small php script to a URL like this:
Code: Select all
<?php
header('Location: http://yourhost/serendipity/archives/' . date('Y/m/d') . '.html');
?>
Insert that into a file like index.html - only if PHP is parsed in files with .html extensions on your server. If that doesn't work, you would need to call the file like myindex.php and edit your .htaccess file to set "DirectoryIndex /myindex.php".
3. You can edit your entries.tpl template file. Depending on the template you should see a loop like this:
Code: Select all
{foreach from=$entries item="dategroup"}
That will make sure that all entries are shown on a page. To restrict it to the entries of the current day, you need to change it to this:
Code: Select all
{assign var="current_shown" value="no"}
{foreach from=$entries item="dategroup"}
{$current_shown == 'no'}
<!-- This is the first block of entries for the first date of this page -->
... here comes all the code that currenty is shown after the {foreach} loop until the end of the {/foreach}. There should also be a second {foreach} loop that needs to be part of this, to print multiple entries on the same date ...
{assign var="current_shown" value="yes"}
{else}
<!-- Nothing to print here, the date is discarded -->
{/if}
The tricky part of the loop is that you need a temporary variable "current_shown" that is set once a date has been emitted. The first dategroup always comes at the beginning of the loop, so the loop needs to simply ensure that only the first block is shown, and everything else is discarded.
I'm not fully sure if you might get trouble that certain posts are then hidden from your page display. If that happens, you will need to create an event plugin that changes the serendipity_fetchEntries() call SQL structure to only return entries of a given date (today, or the ones coming from an URL query string). Building such a plugin requires PHP knowledge, though.
HTH,
Garvin