Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-11-06 11:35:33

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

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

#2 2011-11-06 12:25:38

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,397
Website GitHub Mastodon Twitter

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

#3 2011-11-06 12:32:36

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

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

#4 2011-11-06 12:43:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,397
Website GitHub Mastodon Twitter

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

#5 2011-11-06 12:50:33

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

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

#6 2011-11-06 13:07:02

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,397
Website GitHub Mastodon Twitter

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

#7 2011-11-06 13:14:22

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

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

#8 2011-11-06 13:20:50

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

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

#9 2011-11-06 14:17:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,397
Website GitHub Mastodon Twitter

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

#12 2011-11-06 18:39:05

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

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

#13 2011-11-06 22:18:42

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: Single posts appear blank

Els:

The tag trace is visible in the source code.

keukenkikker wrote:

GugUser, I’m using the default form and default page from Textpattern at the moment.

I don’t think so. Which page is assigned, for example, to the section “coaching”?

Offline

#14 2011-11-06 22:59:30

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,227
Website GitHub

Re: Single posts appear blank

The following part of the tag trace from an individual article in the coaching section (near the bottom) confirms what colak wrote in his first answer:

<txp:if_category>
	[<txp:if_category>: false]
	<txp:if_search>
		[<txp:if_search>: false]
	</txp:if_search>
	<txp:article limit="5" />
</txp:if_category>
<txp:if_individual_article>
	[<txp:if_individual_article>: true]
	<txp:site_url />
	<txp:link_to_prev>
		<txp:prev_title />
	</txp:link_to_prev>
	<txp:link_to_next>
		<txp:next_title />
	</txp:link_to_next>
</txp:if_individual_article>

Check the placement of your txp:article tag. The tag trace shows that is within the txp:if_category section (which means “are we on a category list view?”) and when you are looking at an individual article that is not the case (hence the false in the tag trace). There is no txp:article tag in the if_individual_article view so it will not output anything apart from the site name and link to next and prev. If you post your whole page template (your stripped down version is too stripped down), we can pinpoint it more exactly.

Last edited by jakob (2011-11-06 23:04:13)


TXP Builders – finely-crafted code, design and txp

Offline

#15 2011-11-07 09:15:57

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: Single posts appear blank

Jakob, the code above is not wat I was working with in the beginning. When I started this topic I had a different page and form, but when the problems started I copied in the default page and form from Textpattern.

I reactivated my original page and form which is a very simple one.

The page:

<!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>
<meta http-equiv=“content-type” content=“text/html; charset=utf-8” />
<txp:rah_metas description_from=“excerpt,body” words=“50” keywords_from=“keywords” />
<link rel=“stylesheet” href=”<txp:css />” type=“text/css” media=“screen” />
<link href=“stylesheet.css” rel=“stylesheet” type=“text/css” />
<link rel=“shortcut icon” href=”/images/favicon.ico” />
<link rel=“icon” href=”/images/favicon.ico” type=“image/gif” />
</head>

<body>
<div id=“krpa”>

<div id=“top_left”>
</div>

<div id=“top_right”> </div> <div id=“theme”> </div>

<div id=“block_left”>
</div><div id=“block_right”> <txp:output_form form=“menu” /> <br /> <txp:article_custom id=“17” form=“referenties” />
</div>

<div id=“content”>
<txp:article allowoverride=“0” form=“default” />
</div>

<div id=“footer”>
</div>

</div>

</body>
</html>

The default form:

<h1><txp:permlink><txp:title /></txp:permlink></h1>
<txp:body />

Offline

Board footer

Powered by FluxBB