Page 1 of 2
Entry List?
Posted: Fri Mar 23, 2007 3:09 pm
by MntlyNSane
Is there any way to configure the side bar to list your categories, and when clicked it displays a list of the article titles instead of it displaying the full articles? Sort of like browsing through the Older archives list view.
The desired layout would be something like:
Entries For %cat%:
%date% - %title% - %cat% (optional) - %author% (optional)
%date% - %title% - %cat% (optional) - %author% (optional)
%date% - %title% - %cat% (optional) - %author% (optional)
Single line for each item would be a prefered view, instead of what the archive view does with the wrapping
Re: Entry List?
Posted: Fri Mar 23, 2007 3:30 pm
by garvinhicking
Hi!
Do you mean something like:
http://blog.s9y.org/archives/2006/12/summary.html
?
Regards,
Garvin
Re: Entry List?
Posted: Fri Mar 23, 2007 3:41 pm
by MntlyNSane
Similar, but I'd rather have it dump the entire list of
all entries in a category, instead of just what month they are posted in.
Re: Entry List?
Posted: Sun Mar 25, 2007 12:27 pm
by garvinhicking
Hi!
Similar, but I'd rather have it dump the entire list of all entries in a category, instead of just what month they are posted in.
Oh, okay. I don't think there's a plugin for this yet, but it could be written.
As a base for this, you could check out the serendipity_event_customarchive plugin, this allows to configure specific options how to display something. You could tune it to your own needs by setting dateranges or the entry limit option, but that involves some PHP...
HTH,
Garvin
Shouldn't the events be listed by date?
Posted: Thu Mar 29, 2007 12:20 pm
by randulo
Sorry, I searched on entries and plugins and can't find anything other than this thread.
When entries are listed, I would have imagined they'd be listed in descending date order
January 22, 2007 This is a test
January 10, 2007 Some other test
etc
Re: Shouldn't the events be listed by date?
Posted: Thu Mar 29, 2007 12:46 pm
by garvinhicking
Hi!
Serendipity_event_customarchive is available here:
http://spartacus.s9y.org/index.php?mode ... s_event_en if you search for"serendipity_event_customarchive" that page.
HTH,
Garvin
Re: Shouldn't the events be listed by date?
Posted: Thu Mar 29, 2007 1:54 pm
by randulo
Nice, in fact I'm using it somewhere else. I was referring to a sidebar plugin. The entries seem to be listed randomly. I'm sure I could go in and modify the php to add an order, but then upon update things would be messed up. I expected the deault behavior to be in date order.
Re: Shouldn't the events be listed by date?
Posted: Thu Mar 29, 2007 2:34 pm
by garvinhicking
Hi!
To which sidebar plugin are you referring?
Regards,
Garvin
Re: Shouldn't the events be listed by date?
Posted: Thu Mar 29, 2007 3:26 pm
by randulo
garvinhicking wrote:Hi!
To which sidebar plugin are you referring?
Regards,
Garvin
"Recent entries: Shows the titles and dates of the most recent entries
version: 1.6"
Re: Shouldn't the events be listed by date?
Posted: Thu Mar 29, 2007 3:34 pm
by garvinhicking
Hi!
In that plugin inside the SQL query of it, it says "ORDER BY timestamp DESC", so the entries should be ordered by their age descending. Maybe you can check the serendipity_Entries table and see if maybe the timestamps are not what they should be?
Regards,
Garvin
Re: Shouldn't the events be listed by date?
Posted: Thu Mar 29, 2007 3:58 pm
by randulo
garvinhicking wrote:ORDER BY timestamp DESC
Yes that should be right and corresponds with what I'd assume. I looked at the dates on the entries and they are in the right order. I'll look in the table and see in a bit.
Posted: Wed Apr 11, 2007 8:16 am
by jocelynaz
I too would LOVE a plug-in that would do this! I was just about to post a question on this exact same thing. Where, when someone clicks a category, they would be given a list of the entries for that category by TITLE, rather than having all the posts be shown in their entirety.
Just curuious...Is there anything in the works for this plug-in right now? Heheheh! I'm a bit anxious for this as this would make it much better to view previous posts in each category.
Thanks for your consideration!!
Posted: Wed Apr 11, 2007 10:50 am
by garvinhicking
Hi jocelynaz!
You do not need a plugin for this, you can already achieve this by templating.
Edit your entries.tpl, search for the place where {$entry.body} is displayed and change that to
Code: Select all
{if NOT is_array($category_info)}
{$entry.body}
{/if}
Now the entry body will only be printed when you are not browsing a category.
Regards,
Garvin
Posted: Wed Apr 11, 2007 7:55 pm
by jocelynaz
Thanks Garvin! This actually works great and is what I was looking for. However, the thing now is that I want posts on my frontpage to be shown in its entirety. I only want the posts by title under the "Categories" not necessarily on the frontpage. Is there a way to make some type of exception to those posts on the frontpage? Probably not, I'm thinking. But I figure I'd ask in case there is a way to do that.
THanks again for all of your help!! You're great a blessing!
Posted: Thu Apr 12, 2007 11:16 am
by garvinhicking
Hi!
You can also use the variable {$startpage} to detect if you are on the startpage or not. Combine that in your IF-query:
Code: Select all
{if NOT $startpage AND NOT is_array($category_info)}
...
{/if}
to see if that is what you need? You might need to change arround AND/OR and NOT/without NOT...
HTH,
Garvin