PDA

View Full Version : I Don't want a dropdown archive


markhimself
02-06-2006, 06:58 AM
I'm very new to pixelpost, so forgive my ignorance if i've overlooked something obvious.

Instead of having dropdown boxes on the archive page (category and monthly), I want them listed out on the page instead, perferably like this.

2006 (click on year to expand and expose months)
- January (click to go to thumbnail gallery of month)
- Etc..

I thought I had seen something related to this on the addons page, but unless I was doing something wrong, nothing worked. So i'm asking here and hoping someone has a SIMPLE solution to my problem.

se.nsuo.us
02-06-2006, 07:12 AM
I guess the simplest solution for you would be to use the paged_archive addon - to quote from the docs

If you use the ADDON paged_archive.php, you might use these Tags instead:
================================================== ========================
<CATEGORY_LINKS_AS_LIST> || Category links as a text list for default PP's archive page
<CATEGORY_LINKS_AS_LIST_PAGED> || Category links as a text list for page-by-page archive
<BROWSE_MONTHLY_ARCHIVE_PAGED> || Monthly drop box for default PP's archive page
<BROWSE_MONTHLY_ARCHIVE_AS_LINK_PAGED> || Monthly drop box for page-by-page archive
<BROWSE_CATEGORIES_PAGED> || Category drop box for page-by-page archive
<THUMBNAILS_WHOLE_PAGED> || Thumbnails in this page
<THUMBNAILS_PAGES_LINKS> || Link to the pages of thumbnail in the selected category
<ARCHIVE_PAGES_NUM> || Page number you are viewing
<CATEGORY_OR_DATE_NAME_PAGED_ARCHIVE> || Name of the category or Month you select
<LINK_TO_PAGED_ARCHIVE> || Link to Paged-by-page archive page as <a href="index.php?x=browse&amp;pagenum=1">Archive</a>',$tpl);

As far as showing and hiding months etc - you will have to implement some simple Javascript to do so....

markhimself
02-06-2006, 04:38 PM
I guess the simplest solution for you would be to use the paged_archive addon - to quote from the docs

If you use the ADDON paged_archive.php, you might use these Tags instead:
================================================== ========================
<CATEGORY_LINKS_AS_LIST> || Category links as a text list for default PP's archive page
<CATEGORY_LINKS_AS_LIST_PAGED> || Category links as a text list for page-by-page archive
<BROWSE_MONTHLY_ARCHIVE_PAGED> || Monthly drop box for default PP's archive page
<BROWSE_MONTHLY_ARCHIVE_AS_LINK_PAGED> || Monthly drop box for page-by-page archive
<BROWSE_CATEGORIES_PAGED> || Category drop box for page-by-page archive
<THUMBNAILS_WHOLE_PAGED> || Thumbnails in this page
<THUMBNAILS_PAGES_LINKS> || Link to the pages of thumbnail in the selected category
<ARCHIVE_PAGES_NUM> || Page number you are viewing
<CATEGORY_OR_DATE_NAME_PAGED_ARCHIVE> || Name of the category or Month you select
<LINK_TO_PAGED_ARCHIVE> || Link to Paged-by-page archive page as <a href="index.php?x=browse&amp;pagenum=1">Archive</a>',$tpl);

As far as showing and hiding months etc - you will have to implement some simple Javascript to do so....

As far as I can see, there's nothing that mentions the monthly archive listed. Only "Category links as a text list". All the ones for monthly say drop box.

se.nsuo.us
02-07-2006, 03:41 AM
Try out and see please :)

Joe[y]
02-07-2006, 12:05 PM
<BROWSE_MONTHLY_ARCHIVE_AS_LINK_PAGED> should do the job.

markhimself
02-08-2006, 01:30 AM
']<BROWSE_MONTHLY_ARCHIVE_AS_LINK_PAGED> should do the job.
Thanks Joe, that worked. Is it possible instead of having it listed by month to instead have it listed by year, and when you click on the year, the list expands and shows the months?