Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-27 19:12:21

daveJay
New Member
From: Eastern Tennessee - USA
Registered: 2008-04-02
Posts: 9
Website

strange behavior with a form I'm using.

I’ve got the following code in a page.

code
<txp:if_individual_article> <txp:article form=“single” pgonly=“1” searchall=“0” status=“4” />
<txp:else /> <txp:article_custom id=“11” form=“single” pgonly=“0” />
</txp:if_individual_article>
code

If you go to http://www.cmadominicanrepublic.org/missions/ the custom article tag with the specific id kicks in and everything looks fine.

However, if you go to http://www.cmadominicanrepublic.org/missions/the-bottom-line the regular article tag kicks in and you’ll notice that on the bottom it appends comments to the article and you can see “Commenting is closed for this article.” – I don’t understand why this is happening because they both use the same form.

The form doesn’t have anything about comments in it. It’s just…

code
<h2 class=“entry-title”><txp:title /></h2>
<txp:body />
code

Any ideas why there’s an irregularity?

Thanks for any help.

Last edited by daveJay (2008-05-27 19:15:17)

Offline

#2 2008-05-27 19:39:33

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: strange behavior with a form I'm using.

The comments and comment form show up because you are in single article view, it has nothing to do with the form. If you don’t want to use comments at all you can go into “Preferences” and turn “auto append comments” to no and also “on by default” to no.

If you want to use comments in certain areas you might want to look at the comments_display form which controls how they display. A few conditionals here and there…


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2008-05-27 19:56:28

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: strange behavior with a form I'm using.

Offline

#4 2008-05-27 19:58:35

daveJay
New Member
From: Eastern Tennessee - USA
Registered: 2008-04-02
Posts: 9
Website

Re: strange behavior with a form I'm using.

Thanks that fixed the problem.

Offline

Board footer

Powered by FluxBB