Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#151 2009-01-12 15:31:46

warmrobot
Member
From: Moscow, Russia
Registered: 2007-01-22
Posts: 31
Website

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

Ок, thank you for explanations, Mary.

I didn’t want to change your plugin, I was just playing around to find out what is wrong.
After your answers I have menu with links to each month, and articles archive if click to the link. So, everything works!

But, actually I was trying to made archive page looks like on your blog now. How did you do that? Using your own plugin or just with TXP tags?

May be I am mistaken, but I could swear in last month yours blog archive looked different. It looked like you use your plugin (with calendar and short list), and now it don’t. I need exactly the same. Your modern version. :-) Like <txp:upm_date_archive /> in “full” mode with paging for example by 3 months.

Offline

#152 2009-01-12 17:27:03

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

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

My mom’s blog uses the plugin, while my blog uses built-in tags (article and if_different, etc). I don’t blog very often, so I figured my plugin would be over-kill for it.

Offline

#153 2009-01-14 10:46:33

albertlo
New Member
Registered: 2009-01-14
Posts: 1

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

Hi all,
i’m new to Textpattern and i’m finding it a pretty steep learning curve for me but persevering.

Ive used the upm_date_archive plugin by Mary which is working ok, but I was wondering if theres a way to display a count of articles in a given month next to the date archive? ie

January 2009 (2)
December 2008 (8)

Offline

#154 2009-01-15 08:40:41

warmrobot
Member
From: Moscow, Russia
Registered: 2007-01-22
Posts: 31
Website

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

Mary wrote:

My mom’s blog uses the plugin, while my blog uses built-in tags (article and if_different, etc). I don’t blog very often, so I figured my plugin would be over-kill for it.

Oh, yes, I’ve mistaken. By the way, how did you do paging (previous and next) in archive at your site? How far as I now, it’s not possible with <txp:article_custom /> tag. So, standard method couldn’t work.

Offline

#155 2009-01-15 15:17:05

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

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

My articles are actually in the section that the archive page is, so I can use the article tag. Here’s the snippet I use:

<txp:if_individual_article>
<txp:article form="article_single" />
<txp:else />
			<h1 id="topic-heading"><txp:section title="1" /></h1>

			<dl class="log"><txp:article limit="15" form="article_archive" />
			</dl>

			<p><txp:older>Previous</txp:older> 
				<txp:newer>Next</txp:newer></p>
</txp:if_individual_article>

Last edited by Mary (2009-01-15 15:17:13)

Offline

#156 2009-01-15 15:19:44

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

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

There’s currently no way to show the article count, but I could include that feature in a future release.

Offline

#157 2009-01-25 13:24:20

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

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

Version 0.2.5 released

Last edited by Mary (2013-01-24 17:27:16)

Offline

#158 2009-08-06 03:42:53

ryancecilsmith
Member
Registered: 2008-07-17
Posts: 26
Website

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

Hi, I’m sorry to post such an elementary question…

I’m trying to use upm_date_menu on my blog here

How do I change the class of the ul and li? Does this plugin not use ul and li?

I gave the tag a class, and defined the following in my style sheet:

.upm_menu {
        font-size: 80%;
	margin: 0 0 0 10px;
	padding: 0;
	list-style-type: none;
        color: #0ff;
}

.upm_menu ul {
	list-style-type: none;
}

.upm_menu li {
	margin: 0 10px 2px 20px;
	padding: 0;
        font-size: 0.8em;
}

Here is the actual tag in my page code:

<txp:upm_date_menu class="upm_menu" section="blog" category="homelife, japan, job, media, politics, students, webpage-work" insert_empty_months="no" month_format="%B" show_article_count="yes" />

I can get the upm_menu class (without ul or li) to work, only. The other two just have no effect.

Any tips or advice? I hope I’m being clear. Thanks very much.

Offline

#159 2009-08-08 13:32:12

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

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

If you view source of your page, you can see what markup the tag outputs (it can vary according to how you apply certain options), which would allow you to intelligently apply CSS.

Offline

#160 2009-08-17 18:46:37

walter976
New Member
Registered: 2009-08-02
Posts: 7

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

Hello Mary,

is there any attribute for the limit of the articles displayed on a page? Thanks in advance!

Offline

#161 2009-11-18 09:46:49

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

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

Look at the “none_found” attribute described in the plugin’s help doc. :)

Offline

#162 2009-11-21 00:31:47

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

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

I think we’ve got things confused.

Earlier you said that you decided to not use the upm_date_menu tag in favour of generating the links yourself. If you’re also not using the upm_date_archive tag, and using, say, the article tag instead, then you’re not using the plugin at all. Not a problem, per se, except that if you’re not actually using the plugin tags they can’t very well do anything for you. :)

In that instance, you would need to investigate using the if_data plugin someone else has written.

Offline

#163 2010-02-11 11:09:08

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

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

I can get this plugin working perfectly with messy urls but when I switch to clean (/title) the date_archive does not work.

For the date menu my code is:

<txp:upm_date_menu id="archivemenu" insert_empty_months="no" sort="the_year desc, the_month desc" month_format="%B" show_article_count="yes" />

and for the date archive my code is:

<txp:upm_date_archive form="archive_view" mode="smart" heading_level="4" include_date="no" sort="the_year desc, the_month desc, the_date desc" />

If I use mode="full", I get the archive list (apm_date_archive) working but when I want to have a single month displayed by clicking an item on the upm_date_menu list, the same appears (2 months worth of posts)

Any ideas?


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#164 2010-02-11 11:30:16

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

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

That’s because of how /title works, if I remember correctly. Try switching to, say, /section/title and see if it suddenly starts working again.

Offline

#165 2010-02-11 12:07:45

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

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

Hi Mary, thanks for responding so promptly; switching to /section/title works perfectly so thanks for the help. Is there any chance that switching back to /title would make this plugin work?

On a side note, I found it extremely difficult to work out how to use this plugin, was there some documentation, apart from the plugin’s help, that I missed? I checked your site, textpattern.org and read through this entire forum thread but nowhere did it give any example uses and guides. Maybe I missed them, I don’t know, just FYI. It would be good to have it somewhere.


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

Board footer

Powered by FluxBB