Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-13 10:23:58

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

How do I display comments form right on the same page..

Greetings, I have used Excerpt on text Editor for short text to appear. For details clicking on read more takes to detail page.
I want Comments on this page. It’s working. Once click on Comment, it takes me to detail page with comment form and comments made.

I wish not go detail page to display comments and forms but wish to display comments and comments form on the same page.
If this is possible, how could I achieve it?

Another thing, Clicking on Read more displays details contents + comments and comment form.( Wish to display only content)

Thank you all for your help.
Sheru

Offline

#2 2008-06-13 13:34:15

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: How do I display comments form right on the same page..

Sorry, I cannot understand you, Sheru.
Here is a default front page (Click on #6 at the top if it looks strange)
If you click on the title of the first article it takes you to that article’s archive page (I think this is what you mean by the detail page?) If you scroll down you see comments and comment form.
On the front page again, if you click on “Comment” it takes you directly to the comments part of the archive page

Could you explain what you want again, using those examples?


BB6 Band My band
Gud One My blog

Offline

#3 2008-06-13 16:31:08

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: How do I display comments form right on the same page..

You will not be able to display comments and comment_form on the page that displays your excerpt as this page is an “article_list”. Comments and comment_form can only be displayed on an “individual_article” page. This is the page you see when you click the “Read more” link.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2008-06-13 22:45:16

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: How do I display comments form right on the same page..

Stuart, I haven’t applied comment tags so far, so this is just a guess:
Shouldn’t it be possible to use multiple instances of <txp:article limit=“1” form=“form_with_comment_stuff_in_it” /> (optionally further output_form tags in that form) and for each article tag on the page increasing offset by 1?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2008-06-14 09:57:43

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: How do I display comments form right on the same page..

Uli I don’t think that is possible but maybe a dev could step in and confirm or deny this. If I am correct then TXP’s mechanics basically allow you to view an article in 2 formats.

The first would be on your site’s front-page or section front-page which will always be an “article_list”. It doesn’t matter how many articles are displayed on that page. Even if it is a single article it is still a list even though it is a list of one. As far as I am aware TXP cannot display comments on that page because it simply doesn’t know which comments belong to which article. Using multiple article tags as you suggest would simply mean having a page with multiple lists.

The second is the “individual_article” view which is where you end up if you click on the article title or comments links. At this point TXP knows that it is looking at a specific article (the title or ID or both being part of the URL) and can thus display all the comments associated with it and the comment_form if it is allowed.

From what I understand from the original post Sheru is trying to display comments and comment_form on their own page which is a third view-type which doesn’t exist as far as I am aware.

EDIT
Just thinking out loud, I wonder if the “individual_article” view could use a blank form so that the article itself does not display. That way you could have a page that only displays the comments and comment_form but it would mean that your front-page would need to display the full article rather that excerpts otherwise visitors would not be able to read it all. I should point out that I haven’t tried this and I’m thinking that it will impose certain restrictions on navigation as visitors will only be able to navigate the articles using the next/previous links. Any listing of linked article titles will simply take them to the comments/comment_form for that article. ;)

Last edited by thebombsite (2008-06-14 10:21:05)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2008-06-14 11:05:14

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: How do I display comments form right on the same page..

Hope the devs find this, but it seems quite sound the way you explain it. My quick workaround stated me a “form_circular_reference” ;) so I filed it under “brain and tag twister”, but I like pondering what is possible with txp by putting its pieces together in new ways, and that’s why I appreciate the thought you added later, this is the kind of random find I like, even if it might be impossible!


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2008-06-16 04:12:38

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: How do I display comments form right on the same page..

Greetings from Sheru, Sorry for not replying quickly, I was on holiday.Thank you All(Peter, Stuart, Uli) for your great post. I did not expect that I would have this much of interactions on my post. That’s way I say Txp Forum is amazing, I ever encountered. Once again thank you so much for time and quick reply.

The case I have presented here, if seems impossible, it’s OK. Once again thank you All for your help.

I am again in Problem. Could you please help..

On my Blog section, Some article uses excerpt(One article that uses excerpt have already posted on top of this thread) and others not.

My Expections Now I want all articles need comments whether they use excerpt or not.

Problem that I having now is:

1.) Where I have used excerpt, it takes to detail page with content and comment form. That’s OK and working.

2.) Where I have not used excerpt, On that article, I allowed comment on but still I don’t get comment link. Why? What am I missing?

But If I moved content to excerpt of case 2.), then it displays content + comment form. (I don’t want this for short article that does not use excerpt.) How could be successful displaying comments link and form right there for short article that do not use excerpt?

Thank you ALL for your precious time
Sheru

Offline

#8 2008-06-16 04:29:37

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: How do I display comments form right on the same page..

Greetings ALL, Thank you a Lot for your time once again. Whatever I described above as Problem seems solved for now. If I need help I will come in this thread.

Thank you All for your help..
Sheru

Last edited by Sheru (2008-06-16 04:30:37)

Offline

#9 2008-06-18 05:06:58

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: How do I display comments form right on the same page..

Greetings! I am again back to this thread. ALL OK with comment form and displays except some formatting & article link. From yesterday, it’s been being difficult to manage display format of comment form.

Have few queries
1. Preview and Submit button have space in between them. Just below message box, preview button align left and Submit button below message box aligned right. Want remove spaces between them and align left.

2. I can’t take whole comment form more to left. Now form is little a bit away from left.

3. Why can’t I set remember and It’s check box near the input field of Name. Name and Remember with it’s check box has also more space.
Want remove that space and bring near to Name input field.

4.) As I have multiple articles on Blog section where I have used comments. Clicking on Comments link will take to article with comment form. Just below comment form, displayed link of one article which in on Blog section. What I want to do is, want to display *previous * instead of article link. How can I achive it.

Sorry Many questions..

Thank you all for your great help and time
Sheru

Last edited by Sheru (2008-06-18 06:44:42)

Offline

#10 2008-06-18 08:23:22

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: How do I display comments form right on the same page..

Greetings! Thank you All. Problem occurred due to radio, checkbox and form txp tag used in CSS. Did not notice this and wonder how can be done. But playing with CSS solved problem 1,2,3. Now I need your help for solving no 4. problem.

Could you help?
Thank you
Sheru

Offline

#11 2008-06-18 10:46:02

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: How do I display comments form right on the same page..

Greetings, Sheru! You probably have this on your archive page or in a form:
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
Just change it to:
<txp:link_to_prev>Previous</txp:link_to_prev>


BB6 Band My band
Gud One My blog

Offline

#12 2008-06-19 04:49:05

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: How do I display comments form right on the same page..

Warm Greetings, Peter! Thank you so much for sparing your precious time to look at my problem to solve. You are absolutely right and that worked perfectly. Thanks for your great help. Hope to come in touch with you..

Sheru

Offline

Board footer

Powered by FluxBB