Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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.
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
Re: Is there Bug in txp:comments_form ?!
Offline