Page 1 of 1

Complete Entry List?

Posted: Thu Jan 24, 2008 5:05 pm
by clafferty
My apologies if this is answered elsewhere, but I couldn't find anything on this specifically...

What I really want is just a page that lists every entry title on my blog in descending order (separation headers showing the month would be nice, but not necessary).

I'm currently using the Customizable Entries Archive, but don't really know how to customize it. :) It shows the number of posts by month and then you can click on the months to see those posts... but all I really want is a big long list of every title all on one page. Is there an easy way to accomplish this that already exists? Thanks!

Re: Complete Entry List?

Posted: Thu Jan 24, 2008 5:18 pm
by garvinhicking
Hi!

What you could do is create your own staticpage for that. Then you create your own staticpage template that is used by this static page. Inside this template (like plugin_staticpage_complete.tpl) you can use Smarty function call like this:

Code: Select all

{serendipity_fetchPrintEntries limit=999999 template="entries_full.tpl"}
This will instruct s9y to fetch 999999 entries and display them using entries_full.tpl. This file again you can create from an existing entries.tpl template file within your template directory and modify it to suit your needs. For starters, you could simply use template="entries.tpl" to see how/if it works.

The backside of this is that the fetchprintentries function will fetch ALL entries and bodies. Depending on the amount of your entries, this will cost some performance.

Last but not least, you could also create a small event plugin (like the customarchive one) that serves your needs and could use its custom SQL query...

Sorry that there's no REALLY REASY way to do this, I can only offer "REALLY FLEXIBLE". ;-)

Regards,
Garvin

Posted: Fri Jan 25, 2008 12:11 am
by clafferty
i think i'll live without that bit of functionality as all that sounds a bit beyond my abilities, but thanks. :)


i did notice something else though that might be a bug.

if you have a draft saved with a category assigned to it... you can actually find it through the customized archive drop downs. i was playing around with it and saw a bunch of posts that were still works-in-progress showing up like published articles when i used the category pulldown to show articles of just one category. is this intentional? because i'd rather there be absolutely no way to see any article that's still listed as 'draft'...

thanks in advance!

Posted: Fri Jan 25, 2008 11:21 am
by garvinhicking
Hi!

Hm, that shouldn't happen, the plugin uses the serendipity_fetchEntries() function, which always appends "isdraft = 'false'" to the queries?!

Regards,
Garvin

Posted: Fri Jan 25, 2008 4:40 pm
by clafferty
woops... nm. :)

it's not part of the archives plugin, it's part of the Frontend Entry Filtering which has a draft option for some reason... my bad.