Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-01-24 22:12:52

sochicomputerRU
Member
From: Россия
Registered: 2013-01-18
Posts: 61
Website

Is there Bug in txp:comments_form ?!

I come across some unexplained behavior which I just don’t understand?

<txp:comments form=“blog_comments” />

<txp:comments_form form=“blog_comment_form” />

All works fine until I click the preview button, then the damn thing displays the default comments form, as if there is a txp:comments form=“comments” in between my tags.

Offline

#2 2016-01-25 11:22:54

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,596
Website

Re: Is there Bug in txp:comments_form ?!

Hard to say without more infos. Perhaps your article is being shown with a standard article display form (in which the comments tag is embedded) in the preview and not the article display form you originally specified. Try changing the Site Status to Debugging, reload the page / press the preview button and look at the tag-trace at the bottom of the source code of that page. You need to read it carefully, but it should show you which form is being called and when. Maybe that provides you with a clue… Then check your article tags accordingly.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2016-01-25 19:15:42

sochicomputerRU
Member
From: Россия
Registered: 2013-01-18
Posts: 61
Website

Re: Is there Bug in txp:comments_form ?!

Yep, the debugging reveals that, the form ‘comments’ is being called from within ‘blog_comment_form’, ONLY after clicking the preview button.

screenshot
blog_comment_form

In blog_comment_form there is not a single line of code that is calling the form comments. It is doing it automatically. What is going on?

Offline

#4 2016-01-26 06:47:45

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: Is there Bug in txp:comments_form ?!

Hi

in the doc see txp:comments_preview

You add it to your form maybe?

Offline

Board footer

Powered by FluxBB