Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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: 809
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,470
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


BB6 Band My band
Gud One My blog

Offline

Board footer

Powered by FluxBB