Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Archive by month links. How to make 'em?
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
The .htaccess file now has the above stuff in it. But me links are still not working no matter which kind of clean url setting I use.
The .htaccess file is in the public_html directory, and not in the /weblog/ directory that I created for Textpattern. This is right, right?
Offline
Re: Archive by month links. How to make 'em?
The .htaccess should be the some directory your textpattern directory is in (the root of your txp installation). So if your path is /weblog/textpattern then the .htaccess should be in the weblog directory.
Offline
Re: Archive by month links. How to make 'em?
Okay, we’re so frickin close I can taste it! You are a very patient man Rob.
Links to articles and comments now work!! As long as I use /title for the links mode. (If I use other options my images dissappear).
However, the link from the archive for march that the plugin creates:
http://www.davidsloss.net/weblog/article/2005/03
goes nowhere. I still get a big 404.
Last edited by dsloss (2005-03-23 15:49:56)
Offline
Re: Archive by month links. How to make 'em?
Do you have an archive section created? Its hard to say what the problem is without more info.
A typical setup would be to create a section, lets call it archive. Create a page for that section that calls the rss_suparchive. Then use the rss_suparchive_menu to create the month links. Make sure to set the linktosection=“archive”. When you click a link you should go to http://www.davidsloss.net/weblog/archive/2005/03 and the listing will be filtered by month.
Offline
Re: Archive by month links. How to make 'em?
Ha-lay-loooya!
I was wrong, or not refreshing correctly. The link does work! (I did have an archive section setup).
I can get to http://davidsloss.net/weblog/archive/2005/03, but
weirdly enough, the link that is created by the plugin is now
http://davidsloss.net/weblog/default/2005/03
and it resolves correctly! Hoooooorrrraaaaaaayyyy!!!!!!!!!!!!!!
I had to change all the links to images in my pages and articles to full urls instead of local, but that’s a small price to pay.
And I bet you thought you’d be trapped here with me forever!
I can’t thank you enough for your help Rob. Please imagine me buying you beer since that’s as close as I can get to actually buying you a beer.
Thank you!
-d
Offline
Re: Archive by month links. How to make 'em?
No problem. Glad you’re up and running. I’m imagining myself drinking that beer right now (Boy, I wish they’d let me drink at work. The day would go much faster.).
Also, if you want the plugin to generate links to the archive section, just add linktosection=“archive” to the tag.
Cheers,
Rob
Offline
Re: Archive by month links. How to make 'em?
Hi Rob,
Guess who? It’s your worst nightmare returned!
An interesting thing seems be happening with my rss_suparchive implementation:
I have a link to March, and now April which go to the followiing repectively:
http://www.davidsloss.net/weblog/archive/2005/03
http://www.davidsloss.net/weblog/archive/2005/04
Now I must have a setting wrong somewhwere b/c the full list of articles (for both months) shows up under both urls.
I thought this may be b/c I am using the following date format:
Monday April 4, 2005
Which does not include the 03 month id. Is that why? ANd if not, can you tell what might be causing the weirdness?
Here is my code for the plugin btw:
<txp:rss_suparchive_menu mode=“MONTH” section=“article” showcount=“0” linktosection=“archive” timeframe=“PAST” />
Sorry to bug you bug again! It’s just after all that hard work…
Thanks!
David
Offline
Re: Archive by month links. How to make 'em?
Make sure you post your code from your archive page inside code tags so I can see it. The date format you’re using shouldn’t make a difference.
Are you using the latest version (0.14)? If not, try installing it and see if you still have the same problem.
Offline
Re: Archive by month links. How to make 'em?
Hi Rob,
Thanks for repying…
I just upgraded to v0.14 and experiencing same thing as before.
Here’s the code in the page:
<code>
<txp:rss_suparchive_menu mode=“MONTH” section=“article” showcount=“0” linktosection=“archive” timeframe=“PAST” />
<code>
Whatdoyoreckon?
Last edited by dsloss (2005-04-05 16:39:00)
Offline
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
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
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
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
Re: Archive by month links. How to make 'em?
Offline
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