Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-22 16:43:48

brianlux0r
Member
Registered: 2007-06-04
Posts: 41

comments display question

I am wondering how I can get the comments section to display , both the actual comments and the comments posting form, (is that 2 seperate tags i need for this?)

Also, how does textpattern recognize to display comment content on section page versus article page, if both are using the default form which includes the code to include the comments?

here is my default form code:

<h3><txp:permlink><txp:title /></txp:permlink></h3>

<txp:posted />

<txp:body />

<p>&#8212; <txp:author /></p>

<txp:comments_invite wraptag=“p” />

<div><img src=”<txp:site_url />images/1.gif” width=“400” height=“1” class=“divider” alt=”—-” title=”“ /></div>

Offline

#2 2007-09-22 17:07:24

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: comments display question

<txp:comments_form /> calls the form itself.

However, showing this one in an article list will produce errors if you try to submit.

<txp:comments /> displays any comments to the article.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#3 2007-09-22 17:09:45

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: comments display question

Example:

<txp:comments />
<txp:if_individual_article>
<txp:comments_form />
</txp:if_individual_article>

is the way to go.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#4 2007-09-22 17:15:23

brianlux0r
Member
Registered: 2007-06-04
Posts: 41

Re: comments display question

Hi,

Thanks for that.

I’m now showing Commenting is closed for this article.

Where is commenting allow / disallow controlled from? I did not see it on article edit page, nor I cant find the option in admin advanced settings.

Last edited by brianlux0r (2007-09-22 17:15:54)

Offline

#5 2007-09-22 17:29:33

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: comments display question

Where is commenting allow / disallow controlled from? I did not see it on article edit page, nor I cant find the option in admin advanced settings.

First of all on the content > write article page under “More” (to the right of where you actually type in the contents of the article).

And that uses a value you set in the admin > preferences under comments namely ‘On by default?’. Also note the ‘Disabled after’ setting.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#6 2007-09-22 18:00:05

brianlux0r
Member
Registered: 2007-06-04
Posts: 41

Re: comments display question

got it.

Offline

#7 2007-09-22 20:57:05

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

Re: comments display question

This FAQ might be helpful: Comment display confusion.

Offline

Board footer

Powered by FluxBB