Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2005-04-05 17:07:19

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: Archive by month links. How to make 'em?

Well, what are you listing your articles with?

The plugin is designed as a filter for rss_suparchive. If you’re just listing your articles with txp:article or txp:article_custom you won’t get the result you’re looking for. You’d need to use rss_suparchive to do your article listing.

Offline

#26 2005-04-05 22:44:41

dsloss
Member
Registered: 2005-03-18
Posts: 17
Website

Re: Archive by month links. How to make 'em?

I WAS just calling the articles in the “pages” with

<code>
<txp:article />
</code>

(I had figured that txp:rss_suparchive_menu worked by establishing the difference between articles according to the dates attached by Textpattern.)

Okay, so I’ve now figured out that the articles in the ‘default’ page and other pages need to be called by using something like:

<code>
<txp:rss_suparchive section=“article” dateformat=“F Y” showsection=“0” showcats=“0” showsubdate=“1” class=”“ addbreak=“1” limit=“5” />
</code>

in order to allow the rss_suparchive_menu in the sidebar to do its thang. (which it does :-) )

Right now however, with that code, what I’m getting is a list of links to the articles, instead of the articles printing out in full as if just using <code><txp:article /></code>

Is it possible to get the articles to print out in full? Or am I once again being a dumbass and missing some enormous piece of the puzzle?

-d

Offline

#27 2005-04-06 02:23:53

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: Archive by month links. How to make 'em?

You can use your own form to display articles from the suparchive tag. Just add form=“yourform” like you would with the article tag.

But if you did that I don’t know that you’d get a single article when you clicked on a permlink. You’ll have to try that out. I use the article tags on my home page and the suparchive plugin in my archive section.

Offline

#28 2005-04-06 11:30:13

dsloss
Member
Registered: 2005-03-18
Posts: 17
Website

Re: Archive by month links. How to make 'em?

It works BRILLIANTLY!

I am dead chuffed.

Thanks again for your help Rob!

I shall absolutely leave you in peace now.

(Until the next time anyway.)

Offline

#29 2005-04-06 11:44:26

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: Archive by month links. How to make 'em?

> dsloss wrote:

> I am dead chuffed.

I though you meant something else for a minute there.

Offline

#30 2005-04-09 16:30:32

dsloss
Member
Registered: 2005-03-18
Posts: 17
Website

Re: Archive by month links. How to make 'em?

That’s a really funny site. I’ll have to take a good look through it when I have soem time. I think maybe I shall send the link to my american wife too to cut down on the number of times she looks at me funny during the day.

d.

Offline

#31 2005-04-09 16:30:52

dsloss
Member
Registered: 2005-03-18
Posts: 17
Website

Re: Archive by month links. How to make 'em?

That’s a really funny site. I’ll have to take a good look through it when I have soem time. I think maybe I shall send the link to my american wife too to cut down on the number of times she looks at me funny during the day.

d.

Offline

#32 2005-09-12 01:24:23

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: Archive by month links. How to make 'em?

Ok, I am really trying to follow this, but I’m relatively new to txp and am still having problems getting rss_suparchive_menu to work…

1) I installed the rss_suparchive plugin version 0.15.1 (running textpattern version 4.0.1) and made it active
2) I created a section called ‘archive’ and a page to go in the archive section called ‘archive’
3) I placed the following code on my ‘archive’ page so that suparchive is called:
<code>
<txp:rss_suparchive section=“news” dateformat=“F Y” showsection=“0” showcats=“0” showsubdate=“0” class=“aa” addbreak=“1” />
</code>
4) In the ‘news’ section, using a page called ‘news’ I call the articles with the following form:
<code>
<txp:article article limit=“6” />
</code>
My DEFAULT article form code is:
<code>
<txp:if_article_list>
<txp:if_excerpt>
<div class=“article_title”><txp:permlink><txp:title /></txp:permlink></div>
<div class=“date”><txp:posted /></div>
<div class=“article_excerpt”><txp:excerpt /></div>
<div class=“read_more”><txp:permlink>Read more . . .</txp:permlink></div>
<txp:else />
<div class=“article_title”><txp:permlink><txp:title /></txp:permlink></div>
<div class=“date”><txp:posted /></div>
<div class=“article_body”><txp:body /></div>
</txp:if_excerpt>
<txp:else />
<div class=“article_title”><txp:title /></div>
<div class=“date”><txp:posted /></div>
<div class=“article_body”><txp:body /></div>
</txp:if_article_list>
</code>

I am trying to call rss_suparchive_menu in the sidebar on my ‘news’ pages with:
<code>
<txp:rss_suparchive_menu linktosection=“archive” />
</code>

Nothing shows up.

In the above post, <b>dsloss wrote:
Okay, so I’ve now figured out that the articles in the ‘default’ page and other pages need to be called by using something like:<code>
<txp:rss_suparchive section=“article” dateformat=“F Y” showsection=“0” showcats=“0” showsubdate=“1” class=”“ addbreak=“1” limit=“5” />
</code> in order to allow the rss_suparchive_menu in the sidebar to do its thang. (which it does :-) )
</b>

But how do I get that to work in the same way that my current default article form works?
please help!

thx,
stacey

Last edited by photonomad (2005-09-12 01:38:31)

Offline

#33 2005-09-12 01:49:44

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: Archive by month links. How to make 'em?

OK! I got it to work… almost….

Instead of: linktosection=“archive”
I made it:
<code>
<txp:rss_suparchive_menu section=“news” linktosection=“archive” />
</code>
Now I get a nice list by month in the sidebar of my news section!

Only trouble is, when I click on the links… nothing shows on the archive page… the urls look like this: archive/2005/08

hmm

Last edited by photonomad (2005-09-12 01:50:47)

Offline

#34 2006-02-09 01:05:28

papalozarou
Member
Registered: 2004-07-05
Posts: 43

Re: Archive by month links. How to make 'em?

I am having exactly the same problem. I have managed to get my archive page to output all my articles, and i can get the month list on my homepage, but when I click on a month, which has a url of /archive/year/month/ I get my homepage template minus articles.

argh.

**** edit ****

scratch that. I wasn’t using the most upto date version of the plugin. All works beautifully

Last edited by papalozarou (2006-02-09 01:54:13)

Offline

Board footer

Powered by FluxBB