Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Archive by month links. How to make 'em?
What type of web server? If Apache, do you have mod_rewrite? Did you upload the .htaccess file?
Offline
Re: Archive by month links. How to make 'em?
Yes it’s Apache.
Not sure what mod_rewrite is.
“The” .htaccess file? There is a .htaccess file under the main public_html directory.
All it has in it though is: Options -Indexes to stop people being able to look through directories.
Offline
Re: Archive by month links. How to make 'em?
There’s an .htaccess file from textpattern that needs to be in your public_html directory as well. If you pulled from SVN it should be in the root directory that you pulled to. If you want to keep the Options -Indexes line you can add that to the Textpattern .htaccess file. If you get that setup your clean URLs should start working.
Offline
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