Calendar just won't show all categories
Posted: Fri Oct 28, 2005 5:04 am
I'm using the Start Category plugin, so my front page is only showing a subset of my entries. Even when I click the "All Categories" link in the Category sidebar, which is annoying. I figure I can live with it, if the calendar will let me link to all entries in a particular day.
SO, I went about modifying the calendar. I added a showAllCats variable, designed to make it show all categories, instead of only the current category. Where it sets up the $add_query, I modified the if statement to check $showAllCats first.
Before my change, only days with entries in the current category were highlighted on the calendar. Now, days for all entries, regardless of category, are highlighted on the calendar.
But when I click a day, only entries from the current category are displayed. If there are no entries, I get the "no entries" message, which could confuse any mere mortals who didn't realize I was mucking about in the code. (I delight in their incoherent thought: "...But the day was *highlighted*, there must be *something* here...") The link generated correctly; there's no C41.html at the end, just a <day>.html. (I have mod_rewrite enabled, too.)
So, do I need to completely rewrite the URL or something? How in the world could I manage that? $serendipity['uriArguments'] doesn't seem to contain the full list of args, and I don't know if I can change GET and POST. Besides, what would I do about mod_rewrite? Where is Serendipity figuring out that it needs to restrict all posts to this category, anyway?
Thanks in advance,
Judebert
SO, I went about modifying the calendar. I added a showAllCats variable, designed to make it show all categories, instead of only the current category. Where it sets up the $add_query, I modified the if statement to check $showAllCats first.
Before my change, only days with entries in the current category were highlighted on the calendar. Now, days for all entries, regardless of category, are highlighted on the calendar.
But when I click a day, only entries from the current category are displayed. If there are no entries, I get the "no entries" message, which could confuse any mere mortals who didn't realize I was mucking about in the code. (I delight in their incoherent thought: "...But the day was *highlighted*, there must be *something* here...") The link generated correctly; there's no C41.html at the end, just a <day>.html. (I have mod_rewrite enabled, too.)
So, do I need to completely rewrite the URL or something? How in the world could I manage that? $serendipity['uriArguments'] doesn't seem to contain the full list of args, and I don't know if I can change GET and POST. Besides, what would I do about mod_rewrite? Where is Serendipity figuring out that it needs to restrict all posts to this category, anyway?
Thanks in advance,
Judebert