Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-29 23:18:42

Dani
New Member
Registered: 2006-03-29
Posts: 2

Comments appear on static articles...

I created a static page following the steps from here: http://textpattern.com/faq/31/how-do-i-manage-static-pages

My static_article form looks like this:

<b>
<code>
<h3><txp:title /></h3>
<txp:body />
</code>
</b>

(I do not need the excerpt part)

My static_article template includes the refference to the form like this:

<b>
<code>
<txp:article limit=1 form=“static_article” status=“sticky” />
</code>
</b>

And in Sections the static section uses the static_article template, also the new article I created for this section has comments disabled and status set to sticky.

The thing is that the posting date does not appear next to the title anymore, and also the title is no longer a link to the article. This is how it should be, according to the form.
But… comments still appear. And even though I have set them as pop-up, the form appears in the page. If I turn them off for the article, I get instead a message saying “commenting closed for this article”.

I have also tested Textpattern locally, on my computer, and I managed to make static articles without any problems. Now I started customizing Textpattern on a server, and I seem to get this problem.
I have double checked everything, but nothing seems te be wrong. :-(

Can anybody help?

Thank you in advance!

Offline

#2 2006-03-29 23:44:20

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

Re: Comments appear on static articles...

hi Dani, welcome

Try setting “Auto-append comments to articles” in Site Preferences to “No” and tell us if that help.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2006-03-30 09:11:24

Dani
New Member
Registered: 2006-03-29
Posts: 2

Re: Comments appear on static articles...

Hi Julián!

Thank you very very much! It seems your suggestion helped!:-)

But it’s weird, cause I had the exact same settings (with automatically append comments on yes) when I was testing it on my computer, and I did not have this problem!
Well, it’s gone now! :-P

Thank you very much again for the fast answer and your help!

Offline

#4 2006-09-05 22:21:06

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

Re: Comments appear on static articles...

maniqui wrote:

hi Dani, welcome
Try setting “Auto-append comments to articles” in Site Preferences to “No” and tell us if that help.

Is this the only way to control whether a comment form (or notification of closed comments) is displayed by default?
The downside is that for example your blog page, you always have to check “comments on”.
In my case, I would like to set comments on or off per section, because I have for example a section that is being updated continously but doesn’t need the ability to receive comments.

So far I haven’t found a method for setting comments per section, anyone?


Kensington TXP powered rock

Offline

#5 2006-09-06 10:35:49

mstwntd
Member
From: Melbourne, Australia
Registered: 2004-12-25
Posts: 52

Re: Comments appear on static articles...

jan,

The simplest way to accomplish that (that I’m aware of) is through conditional tags. Open up the comments_display form, and wrap everything in:

<txp:if_section name="journal,cheese,news">
-
</txp:if_section>

Offline

#6 2006-09-08 23:33:11

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

Re: Comments appear on static articles...

mstwntd wrote:

jan,

The simplest way to accomplish that (that I’m aware of) is through conditional tags. Open up the comments_display form, and wrap everything in:
<txp:if_section name="journal,cheese,news">
-
</txp:if_section>

Thanks, problem solved! Certainly a simple way, and a good and logical method too, I think.


Kensington TXP powered rock

Offline

Board footer

Powered by FluxBB