Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-08-17 10:09:14

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Published article doesn't appear (just title)

Hello,

I’m publishing an article, but when I do it, I only can see the title of the article, but not the body, on the site. I don’t thinks that’s a length problem, because the Textile version of the article is just 52 KB. Moreover, when I publish the article, I don’t get any warning or error from the CMS.

I don’t know where the problem is. Any suggestion?

Thank you.

Offline

#2 2008-08-17 10:33:03

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Published article doesn't appear (just title)

Is there a <txp:body /> tag in your template or article form?

Offline

#3 2008-08-17 10:51:55

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: Published article doesn't appear (just title)

ruud wrote:

Is there a <txp:body /> tag in your template or article form?

Yes, there is.

I never had this problem before. I’ve tried making the article shorter, and this way the problem disappears and I can publish it correctly. But I don’t understand why is that, as the article doesn’t exceed the maximum length. I need to publish it as it is.

Another fact is that I’m editing the article in the “Text” tab, but when I switch to HTML or Preview tabs, there’s nothing there.

Offline

#4 2008-08-17 10:55:55

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Published article doesn't appear (just title)

Post what you have in your page and form, so we can take a look. A tag trace too, perhaps.

Offline

#5 2008-08-17 11:05:35

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: Published article doesn't appear (just title)

jstubbs wrote:

Post what you have in your page and form, so we can take a look. A tag trace too, perhaps.

This is what I have in my form:

<div class="article">

<txp:if_article_section name="articulos">
<p class="data"><txp:posted /></p>
<h3><txp:title /></h3>
<txp:body />
<p class="archivado">Artículo archivado en: <txp:category1 link="y" /></p>
<p class="prev"><txp:link_to_prev><txp:prev_title /></txp:link_to_prev></p>
<p class="next"><txp:link_to_next><txp:next_title /></txp:link_to_next> </p>
<div class="clearit"></div>
</txp:if_article_section>

<txp:if_article_section name="reportajes">
<p class="data"><txp:posted /></p>
<h3><txp:title /></h3>
<txp:body />
<p class="archivado">Artículo archivado en: <txp:category1 link="y" /></p>
<p class="prev"><txp:link_to_prev><txp:prev_title /></txp:link_to_prev></p>
<p class="next"><txp:link_to_next><txp:next_title /></txp:link_to_next> </p>
<div class="clearit"></div>
</txp:if_article_section>

<txp:if_article_section name="eventos">
<p class="data"><txp:posted /></p>
<h3><txp:title /></h3>
<txp:body />
</txp:if_article_section>

<txp:if_article_section name="videos">
<p class="data"><txp:posted /></p>
<h3><txp:title /></h3>
<txp:body />
</txp:if_article_section>

<txp:if_article_section name="publicaciones">
        <txp:article_image />
        <h3><txp:permlink><txp:title /></txp:permlink></h3>
        <txp:body />
        <div class="clearit"></div>
</txp:if_article_section>

</div>

Offline

#6 2008-08-17 11:45:28

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Published article doesn't appear (just title)

And the page? What’s in that?

Offline

#7 2008-08-17 11:56:39

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: Published article doesn't appear (just title)

jstubbs wrote:

And the page? What’s in that?

This is in my page:

<div id="main">
	<txp:article form="default" listform="excerpt" limit=10 />
        <p class="anterior"><txp:older>Página anterior</txp:older></p>
        <p class="siguiente"><txp:newer>Página siguiente</txp:newer></p>
</div>

Offline

#8 2008-08-17 12:08:00

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Published article doesn't appear (just title)

I am not familiar with the if_article_section tag, but I would think your problem is one of two things – either the article tag is executing the “excerpt” form, or the if_article_section is not working as you expect it to.

I would make a small change to the form above – remove the conditional statements and see what happens. Also check the excerpt form to see what it contains.

Offline

#9 2008-08-17 16:17:51

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Published article doesn't appear (just title)

Mmm… do you have any custom field named “body”? If yes, rename it.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#10 2008-08-18 06:34:52

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: Published article doesn't appear (just title)

jstubbs wrote:

I am not familiar with the if_article_section tag, but I would think your problem is one of two things – either the article tag is executing the “excerpt” form, or the if_article_section is not working as you expect it to.

I would make a small change to the form above – remove the conditional statements and see what happens. Also check the excerpt form to see what it contains.

It’s weird, because I’ve created another test article, full of <p>, which is 132 KB, and I have no problem publishing it. However, the article I want to publish is 52 KB, and it has paragraphs, lists, tables, headings… I think perhaps there’s a problem when converting from Textile to XHTML, that prevents the article from being published.

Thanks for your advice!

Last edited by Zubrik (2008-08-18 06:35:18)

Offline

#11 2008-08-18 09:14:06

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Published article doesn't appear (just title)

If Textile -> XHTML conversion is a problem, you should be able to see that on the write TAB by clicking the XHTML tab on the right side of the body textarea

Offline

#12 2008-08-18 09:32:47

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: Published article doesn't appear (just title)

ruud wrote:

If Textile -> XHTML conversion is a problem, you should be able to see that on the write TAB by clicking the XHTML tab on the right side of the body textarea

If I click the XHTML or Preview tab I just can see the article’s title and excerpt, but not the body.

If I delete some of the article’s text, making it shorter, then I can see it in the XHTML and Preview tabs. That’s why I think it’s a length problem.

However, if I create another, longer article, I can see it in all the tabs without problem.

I have nearly 60 articles published on this site, and I had never seen a problem like this.

Offline

Board footer

Powered by FluxBB