Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-23 14:25:29

PeterH
Member
Registered: 2006-07-23
Posts: 10

How can I have an archive with multiple sections? (but not all)

I have an archive:

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

When I try to comma separate the sections it doesn’t work, how else could I have an article archive with multiple sections included (but not all sections)?

Thanks,

Peter

Offline

#2 2006-07-23 15:26:15

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How can I have an archive with multiple sections? (but not all)

The plugin chh_article_custom can handle multiple sections.

Offline

#3 2006-07-23 18:35:37

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: How can I have an archive with multiple sections? (but not all)

You could just duplicate your code, ex:

<code>
<h3>Blog</h3>
<txp:article_custom limit=“999” section=“blog” form=“monthly_article” />
<h3>Words</h3>
<txp:article_custom limit=“999” section=“words” form=“monthly_article” />
</code>

Offline

#4 2006-07-23 19:07:33

PeterH
Member
Registered: 2006-07-23
Posts: 10

Re: How can I have an archive with multiple sections? (but not all)

deldindesign wrote:

You could just duplicate your code, ex:

<code>
<h3>Blog</h3>
<txp:article_custom limit=“999” section=“blog” form=“monthly_article” />
<h3>Words</h3>
<txp:article_custom limit=“999” section=“words” form=“monthly_article” />
</code>

I tryed that but the monthly_article form uses the tag if_different which means it interferes when you try to add another archive list below it (i.e. it won’t repeat the months or year – because it isn’t ‘diffferent’)

<code>
The plugin chh_article_custom can handle multiple sections.
</code>

I’ve installed it but it has caused the monthy_article not to work, if you go here: iomesus all the articles from both sections are there, but it is not displaying the year/month of any of the articles.

I am using the code from here: code for monthly_article

Thanks,

Peter

Last edited by PeterH (2006-07-23 19:47:33)

Offline

#5 2006-07-23 19:51:40

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How can I have an archive with multiple sections? (but not all)

O.K. I just found out that if you use ‘listform’ instead of ‘form’ in chh_article_custom, it works!

Offline

#6 2006-07-23 19:59:14

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: How can I have an archive with multiple sections? (but not all)

I set up multiple archives for different, but not all, sections here using article_custom. Have you read Simple Archives 1 & 2? If you use something like that for your form code, it should work. I can dig up the forms I used, if needed.

EDIT: You should to turn “auto append comments” off to get the archives working. Then see this for displaying and styling.

Last edited by deldindesign (2006-07-23 20:35:37)

Offline

#7 2006-07-23 21:07:22

PeterH
Member
Registered: 2006-07-23
Posts: 10

Re: How can I have an archive with multiple sections? (but not all)

Thank you Els and deldindesign, all working now.

Offline

Board footer

Powered by FluxBB