Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#37 2006-04-22 05:33:45
- thehobo
- New Member
- Registered: 2006-04-20
- Posts: 3
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
Try something like few articles in consecutive months in 2005, then jun2005-feb2006 no articles. mar2006 and apr2006 some articles. You will see that the 2005 June-Dec still show even tho there are no articles published for those months.
Offline
#38 2006-04-22 18:50:49
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
Okay thanks. Hopefully I’ll be able to update with a fix for you shortly. :)
Offline
#39 2006-04-23 04:45:31
- thehobo
- New Member
- Registered: 2006-04-20
- Posts: 3
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
Hi,
I manage to fix this. The error was rather subtle. Look a function upm_date_menu (towards the end).
if ($insert_empty_months = ‘yes’ and $working_month < 12)
change to
if ($insert_empty_months == ‘yes’ and $working_month < 12)
Just a missing “=”. :)
Offline
#40 2006-04-23 06:19:35
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
v.0.1.7.
Thanks, thehobo. :)
Offline
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
I’ve got <txp:upm_date_menu insert_empty_months="no" link_to="article" year_format="" month_format="%B %Y" sort="the_year desc, the_month desc" break="li" class="bullit" />
and it’s working great.
But i guess the ‘break’ attribute isn’t supported. Is it possible to replace the <dd>
tags that the months are wraped in with <li>
?
Yes, I have tried turning it off and on.
Offline
#42 2006-05-07 15:46:45
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
But i guess the ‘break’ attribute isn’t supported.
Read the plugin help for what attributes are supported. That’s correct, “break” is not one of them.
Is it possible to replace the
<dd>
tags that the months are wraped in with<li>
?
Nope. It wasn’t meant to be a highly configurable plugin, just basic. There are any number of ways the year/month list could be marked up, so when I wrote the plugin I decided to just use arbitrary tags to keep it simple (to create and use). I’m open to suggestions on how to make this confgurable (but it needs to remain uncomplicated).
Offline
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
Yep, I noticed that “break” was conspicuously missing.
I actually find the plugin very powerful and great. Unfortounately, all the other lists on my sidebars have bullets (I use a custom image), so my archives list doesn’t match when I use upm_date_archive. Now that I’m thinking about it, though, I can probably get what I want with article_custom and some conditionals . . .
Yes, I have tried turning it off and on.
Offline
#44 2006-05-08 23:40:06
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
Oh, are you talking about the article list itself, and not the menu? ‘cuz that can use unordered lists and headings (the upm_date_archive tag, “smart” rather than “full” mode).
Offline
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
No . . i ‘m using upm_date_menu. It’s live on my site right now . . . you can tell ‘cause it’s the only sidebar list without bullets.
Yes, I have tried turning it off and on.
Offline
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
hi Mary :)
I find a little bug with url /section/id/title. I catched always 404 page! I changed these lines in function upm_date_archive_load to make the section array lower case and all work fine.. maybe it ll be usefull :)
$sections = unserialize($upm_date_archive_listen);
if (empty($sections)) { return; } /// start for ($i = 0; $i < sizeof($sections); $i++) { $sections[$i] = strtolower($sections[$i]); } ///end if (in_array($req[‘u1’], $sections)) {
if ($req[‘u2’]) { if (preg_match(‘/^[0-9]{4}-{1}[0-9]{2}$/’, $req[‘u2’])) { $_GET[‘s’] = $req[‘u1’]; $_GET[‘month’] = $req[‘u2’]; } }
else { $_GET[‘s’] = $req[‘u1’];
} }
Last edited by ZiQ (2006-05-11 22:54:02)
Offline
#47 2006-05-13 00:00:50
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
Er, wouldn’t that mean you’re actually passing the wrong section name to the plugin?
Offline
Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings
I had a head-slapping moment in answer to my question above: I can add “bullet points” to <dd>
items by using a background image and some left-padding. In fact, I did the same for my UL’s, so they’re styled consistently, they all have bullets, and I’m happy.
Yes, I have tried turning it off and on.
Offline