Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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: 45
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