Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-21 21:06:54

michele
New Member
From: Italy
Registered: 2006-02-06
Posts: 7
Website

Comments not called from an article form

I need to display comments for a single post in a differente place than the one where the post itself is.
So, instead of calling <txp:output_form form="comments_display" /> from an article form (say, “Single”), I try to call it from within the page, but it says there are no comments even though there are comments in the DB.

I presume it’s not possible to do place <txp:output_form form="comments_display" /> outside of an article form, am I wrong?
It’d be a real bummer since it prevents me from switching my blog to TXP. :(

Last edited by michele (2006-05-22 06:42:16)

Offline

#2 2006-05-21 22:42:32

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Comments not called from an article form

I presume it’s not possible to do place outside of an article form, am I wrong?

The comments tags must be used inside an article form. However, you can use more than one article form on a page: one to show the article, and one to show the comments.


Alex

Offline

#3 2006-05-22 06:32:28

michele
New Member
From: Italy
Registered: 2006-02-06
Posts: 7
Website

Re: Comments not called from an article form

Great! It works, thanks. :)

Now there’s another issue: comment preview shows in two places any ways to prevent this?

Edit: I’ve managed to fix this by using <txp:comments_preview />. Now nothing will prevent me from switching to TXP! :)

Last edited by michele (2006-05-22 06:41:54)

Offline

Board footer

Powered by FluxBB