Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Archive pages stopped working
I should preface this by stating that I set up TextPattern on my site The Reducers last year and I haven’t touched it since other than to edit some info in the left-side menu for the next gig. (I haven’t had time yet to implement that section in a more elegant manner.) I’m far from being an expert about TextPattern.
I just noticed that my Archive pages are no longer displaying the correct article. It was working for quite a while and seems to have stopped working within the past week. All I was getting was the header, left and right menus and footer. The content section of each page was empty. I started removing a little at a time from the content div until all I had remaining was the <txp:article limit=“5” /> tag. Still nothing. So I removed everything else on the page so that my Archive page code looks as follows and I still get nothing:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><txp:page_title /></title>
<txp:css format="link" />
</head>
<body bgcolor="#ffffff">
<div id="container">
<!-- center -->
<div id="content">
<txp:article />
</div>
</div>
</body>
</html>
My preferences are set to use year/month/day/title as the permanent link style. I’m wondering if I have a problem with my .htaccess file which contains this (I haven’t modified that since long before this problem started):
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
The home page on my site is working fine. My only other guess is that sometime this weekend I copied and pasted some stuff from the home page’s left-side menu to the Archive page’s left-side menu and perhaps I inadvertently pasted something I shouldn’t have. I’m not sure what to try next. I just downloaded TP 4.0.6 but I’m hesitant to upgrade until I have this issue figured out.
Any suggestions on how to proceed with diagnosing or solving my problem?
McD
(edit: added bc..
for better code display -Els)
Last edited by els (2008-09-01 20:05:53)
Offline
#2 2008-09-01 20:21:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Archive pages stopped working
Looks to me as if it’s just the top two articles that are not being displayed. http://www.thereducers.com/article/ is showing all except those two. The individual articles also show up fine.
Can you find a difference between the top two articles and the others? Maybe you put them in a wrong section?
Offline
Re: Archive pages stopped working
Thanks for noticing that. They both look fine. Both are set for the Articles section but they are the only two articles that are set as “Sticky”. If I change them back to “Live” then they display correctly on the Archive page.
Any ideas what would make the “Sticky” flag suddenly start keeping articles from displaying on Archive pages?
McD
Offline
#4 2008-09-01 22:04:01
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Archive pages stopped working
I doubt if it ‘suddenly’ started keeping articles from being displayed. <txp:article />
shows only ‘live’ articles by default; only the attribute status="sticky"
would show sticky articles. If you really need them to be sticky, you can always use two article tags:
<txp:article status="sticky" />
<txp:article />
This will first display the sticky articles, and then the live ones.
Offline
Re: Archive pages stopped working
Thanks once again. You’re correct. I was missing the sticky article tag on my Archive template. I didn’t start using the sticky tag immediately after setting up my site and, once I did, I apparently figured out how to get them to display on the home page but I didn’t think to add the sticky tag to my Archive template and I didn’t noticed that they weren’t appearing on my Archive pages until this weekend.
Thanks for your help.
McD
Offline
Pages: 1