Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2007-03-12 10:03:42

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

I think that may be because the plugin uses MySQL to output the date headings. I’ll look into it.

Offline

#74 2007-03-20 15:03:01

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Hi Mary,

Is there any way in which upm_date_menu could be displayed in the form Month Year instead of having all the months under the heading of a single year? Also, is it possible to format the list so that there is no indent? How would I go about doing it if so?

Thanks in advance,
Jez.

Offline

#75 2007-03-21 00:44:19

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

…displayed in the form Month Year…

Customize the month_format attribute.

…instead of having all the months under the heading of a single year?

No, there isn’t. You could, though, craft your own menu using built-in tags (article, posted, if_different). FAQ

…is it possible to format the list so that there is no indent?

CSS. As the plugin Help doc states, you can have classes and ids applied to certain elements. Here are two different sites using my plugin:

As you can see, it’s possible to make the menu and listing look nice and compact.

Offline

#76 2007-03-21 14:04:50

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Hi Mary,

Thanks for your help. I’ve managed to remove the year heading and append it to the end of each year, but I’m unaware of the CSS to remove the indent (see here) – any clues?

Thanks again!
Jez

Offline

#77 2007-03-21 15:30:35

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

carrotrope wrote:

…but I’m unaware of the CSS to remove the indent (see here) – any clues?

Pop this in your CSS:

.column1 dl dd {
    margin-left: 0;
}

Offline

#78 2007-03-21 16:25:01

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Jeff, that’s wonderful. Thanks so much. I don’t suppose there is any way to push the list of months up to meet Archives is there? Are the months contained within something forcing it down? (Sorry! My CSS needs some serious polishing..)

Offline

#79 2007-03-21 16:38:57

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Oh, another issue – The archive appears on static pages called About, Submit and Contact, but although I’ve specified section=“Blog” in the tag, clicking on the monthly link only brings up the single, sticky post made in the submit sections instead of the archives of the main blog..?

Offline

#80 2007-03-22 22:52:13

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

This isn’t plugin-related, this is a misunderstanding with templating. You need to check what is in your Page used by your “Blog” Section.

Offline

#81 2007-03-25 23:05:24

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Mary wrote:

This isn’t plugin-related, this is a misunderstanding with templating. You need to check what is in your Page used by your “Blog” Section.

Mary could you possibly suggest what I should be looking for? The code in my Blog section reads as such:

<txp:upm_date_menu year_format=”“ section=“Blog” insert_empty_months=“no” month_format=”%B %G” showcount=“yes” />

That exact code is in all of the static pages, yet they only look for entries in those sections..

EDIT: A-ha! Solved it – I was mistaking the ‘section’ attribute for ‘link_to’. Superb.

Last edited by carrotrope (2007-03-26 00:42:45)

Offline

#82 2007-03-25 23:07:51

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Apologies, but I still don’t appear to be able to force the months of the list up to meet the ‘Archive’ title above it – does anyone have any suggestions on what CSS might be appropriate? The page is still viewable here for viewing.

Last edited by carrotrope (2007-03-26 00:43:07)

Offline

#83 2007-03-26 05:01:46

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

The best place to ask these kinds of questions is in the Presentation forum. That way you get assistancer faster and someone else that searches for it will easily find it as well. :)

Offline

#84 2007-03-27 17:14:17

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Thanks Mary. I’ve asked there, but I felt it better to ask here as I believe it’s more to do with how you formatted results in your script as opposed to the CSS I can apply to it.. not to mention, this particular section of the forum appears to be more active..

Offline

Board footer

Powered by FluxBB