Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#46 2006-04-09 19:51:39

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Archive lists by month (section, category, etc) with 4.0.2

I’ve emailed you about the plug-in. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#47 2006-05-29 17:18:01

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Archive lists by month (section, category, etc) with 4.0.2

I’ve added a second article explaining how to produce a menu in your sidebar that will link to your archives using this method. No plug-ins were harmed in the creation of this article.

Last edited by thebombsite (2007-01-27 22:59:06)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#48 2006-08-23 23:14:59

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,229
Website GitHub

Re: Archive lists by month (section, category, etc) with 4.0.2

Achieving an archive list by category was no problem thanks to zem’s great FAQ, but I searched high and low for a way to make the articles in each category be sorted alphabetically. The answer was buried deep in stu’s article mentioned above, but I think it’s useful so have added it here:

The article_custom tag can take more than one sortby criteria e.g. for an alphabetic list of articles grouped by category use sortby="category1,title" in your initial article_custom tag. Wonderful!


TXP Builders – finely-crafted code, design and txp

Offline

#49 2006-08-28 08:02:47

holli.p
Member
From: Pinneberg/Germany
Registered: 2004-04-21
Posts: 83
Website

Re: Archive lists by month (section, category, etc) with 4.0.2

Is it possible to build an alphabetical archiv like this:

A
A……
A… …….. …
a…………….

B
b…….
B… ……. …
B……………

C
C……………
C……

Last edited by holli.p (2006-08-28 08:03:37)


Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock

Offline

#50 2006-08-28 09:00:59

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

Re: Archive lists by month (section, category, etc) with 4.0.2

Sure. Add sortby="Title" sortdir="asc" to your article tag, to sort articles alphabetically. Next, add to your article form:

<txp:if_different>*<txp:php>echo substr(title(array()), 0, 1);</txp:php>*</txp:if_different>

I haven’t tested it, but that should work.

Offline

#51 2006-08-28 10:15:35

holli.p
Member
From: Pinneberg/Germany
Registered: 2004-04-21
Posts: 83
Website

Re: Archive lists by month (section, category, etc) with 4.0.2

Thanx Mary, but I have no idea how my complete article form have to look than.


Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock

Offline

#52 2006-09-21 21:43:36

titilayo
New Member
Registered: 2006-07-25
Posts: 9

Re: Archive lists by month (section, category, etc) with 4.0.2

attn: thebombsite

Can you post or e-mail me the plug-in based solution you were able to devise for P? I would much appreciate it. My e-mail is meATgallimaufryDOTws. Thankee muchly.

Offline

#53 2007-02-20 06:42:11

hparade
New Member
Registered: 2007-02-20
Posts: 2

Re: Archive lists by month (section, category, etc) with 4.0.2

Hi How about if the archive list gets longer and longer and make the page too long? Can we seperate the list into several pages then?

Offline

#54 2007-02-20 08:10:48

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

Re: Archive lists by month (section, category, etc) with 4.0.2

Can we seperate the list into several pages then?

If you’re using a separate page as an archive (necessitating the article_custom tag), then no, you can’t (because article_custom doesn’t allow for paging).

If you are using the article tag within it’s own section, then yes: simply lower the limit and add navigation tags. I do it for my blog’s archive.

Last edited by Mary (2013-01-24 17:35:30)

Offline

#55 2007-02-20 22:24:22

hparade
New Member
Registered: 2007-02-20
Posts: 2

Re: Archive lists by month (section, category, etc) with 4.0.2

Mary wrote:

If you are using the article tag within it’s own section, then yes: simply lower the limit and add navigation tags. I do it for my blog’s archive.

How to use the article tag with its own section instead of a seperate page? Sorry I’m newbie, please tell me the steps like the one in faq, thank you.

Last edited by hparade (2007-02-20 22:25:26)

Offline

#56 2007-02-21 05:42:52

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

Re: Archive lists by month (section, category, etc) with 4.0.2

Well, say you have a section named “blog”. In the page for “blog”, you’d put something like:

<txp:if_individual_article>
	<txp:article />
<txp:else />
			<txp:article limit="15" form="article_archive" />

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

Your article_archive form would remain the same.

Offline

#57 2007-03-28 23:39:19

gaza
Member
Registered: 2004-11-22
Posts: 29
Website

Re: Archive lists by month (section, category, etc) with 4.0.2

Mary wrote:
<txp:if_different>*<txp:php>echo substr(title(array()), 0, 1);</txp:php>*</txp:if_different>

Yeah it works. But using the <article/> tag or the <article_custom/> is there a way to say: Here’s a list of all the posts that beging with the letter A.

We have more than 2000 posts in our site, and we’d like to have the alphabetical lists working. But we can’t have a 2000 titles long.

A – B – C – D … etc would be nice to have as separate pages with all the posts.

See here’s the site: CanaldeVideos.com

Last edited by gaza (2007-03-28 23:39:47)

Offline

#58 2007-03-30 12:33:34

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

Re: Archive lists by month (section, category, etc) with 4.0.2

…is there a way to say: Here’s a list of all the posts that beging with the letter A.

I’m afraid not. A plugin may or may not be available which could do that; check the resources site.

Offline

#59 2007-11-15 16:31:23

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 819
Website

Re: Archive lists by month (section, category, etc) with 4.0.2

On this page > www.joopvos.nl/txp/archive I use the monthly_article form … how must I style the form to let a new year/month and all articles of that period start at a new line? I can’t get my head around this one … so help is very welcome!

Offline

#60 2007-11-15 18:59:44

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,475
Website

Re: Archive lists by month (section, category, etc) with 4.0.2

In the monthly_article form I have:

<txp:if_different>
</dl>
<dl>
<dt><txp:posted format="%B %Y" /></dt>
</txp:if_different>
<dd><a href="<txp:permlink />" title="Permanent link to <txp:title />"><txp:title /></a></dd>

In the archive_list page template I have:

<dl><txp:article_custom limit=99999 form="monthly_article" /></dl>

Hope that helps


Dozy P My attempt at music

Offline

Board footer

Powered by FluxBB