Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Single posts appear blank
Dear all,
When I view my website and only retrieve a section, all posts are displayed. But as soon as I select a specific article (by clicking a permlink or via the menu) the article is not displayed.
I removed almost all of the layout. Please have a look at: http://www.kernvisiemethode.nl/coaching.
Thanks in advance for your help!
Sharon
Offline
Re: Single posts appear blank
Hi Sharon,
There is a <txp:article />
tag missing for your individual articles. Can you post the template you think that it should be calling those posts?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Single posts appear blank
Hi Colak,
The Page (at this moment – I stripped it completely) is as follows:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en”>
<head>
<title><txp:page_title /></title>
<link rel=“stylesheet” href=”<txp:css />” type=“text/css” media=“screen” />
<link href=“stylesheet.css” rel=“stylesheet” type=“text/css” />
</head>
<body>
<txp:article form=“default” listform=“default” />
</body>
</html>
and the template is as follows:
<h1><txp:permlink><txp:title /></txp:permlink></h1>
<txp:body />
Offline
Re: Single posts appear blank
the content of the default form?
If it is what you call as “the template”
could you change it to
<txp:if_article_list>
<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:excerpt />
<txp:else />
<h1><txp:permlink><txp:title /></txp:permlink></h1>
<txp:body />
</txp:if_article_list>
also in your page instead of <txp:article form="default" listform="default" />
can you change it to <txp:article form="default" allowoverride="0" />
Last edited by colak (2011-11-06 12:44:13)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Single posts appear blank
Yes, it was the content of the default form. I’ve stripped that one as well, when the articles didn’t show anymore.
I made the changes you advised, but the problem still remains.
When you create and save (or edit) an article, you can hit the ‘view’ button right next to the title. This one returns a blank page as well.
Offline
Re: Single posts appear blank
do you have any other page templates (like an archives one?)
Also does your ‘archives’ section point to the default template?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Single posts appear blank
I have no specific archives page, but when I use the ‘article_listing’ form, the same problem. The list is there, but when you click the permlink, a blank page appears.
I also tried with other forms and pages from my existing TXP installations … I’ll try again with the default TXP forms.
Last edited by keukenkikker (2011-11-06 13:14:53)
Offline
Re: Single posts appear blank
Hi Colak,
The default forms and pages don’t solve the problem eather. I see the list with all the articles, but when I select one, a blank page appears. I’m lost here!
Just had a closer look. The divider is shown and the next and previous link as well. Still the title & body etc. are not visible, but something has changed.
This information comes from the page though, and not from the form.
Last edited by keukenkikker (2011-11-06 13:33:21)
Offline
Re: Single posts appear blank
OK
let’s forget the form try adding this to the page:
<txp:article>
<txp:if_article_list>
<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:excerpt />
<txp:else />
<h1><txp:permlink><txp:title /></txp:permlink></h1>
<txp:body />
</txp:if_article_list>
</txp:article>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#10 2011-11-06 17:24:47
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: Single posts appear blank
Can you show the code how you create this in Textpattern:
<!-- center -->
<div id="content">
<div class="hfeed">
</div>
<div class="divider"><img src="http://www.kernvisiemethode.nl/images/1.gif" width="400" height="1" alt="---" title="" /></div>
<p><a rel="prev" href="http://www.kernvisiemethode.nl/coaching/andere-methodes" title="Andere methodes">« Andere methodes</a></p>
</div>
Offline
#11 2011-11-06 18:19:45
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Single posts appear blank
If the above replies don’t solve the problem, can you post a tag trace of an individual article page?
Offline
Re: Single posts appear blank
Colak, I’ve made the changes, but nothing has changed in the outcome.
GugUser, I’m using the default form and default page from Textpattern at the moment.
Offline