Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-20 14:33:45

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Comments comments comments...

It’s been a while since I’ve had to go here, asking questions, anyhow I now have a genuine problemo:

On a page, my future photoblog, I have two article-tags, basically like this:

<code>
<div id=“content_photoblog”>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
<txp:article_image />
<txp:article form=“photoblog_image” limit=“1” />
</div>

<div id=“left”>
<txp:article form=“photoblog_custom” limit=“1” />
</div>
</code>

My problem is, I have set up Textpattern to use pop-up comments, and it does so on the section root, but not on the individual articles / images. Furthermore, I get comment-forms on both article-forms, even though only one of the article-forms includes a comment invite…

Any help appreciated ;-)

Last edited by raveoli (2006-01-20 17:12:48)

Offline

#2 2006-01-20 14:38:39

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: Comments comments comments...

FFS – how do I input code here? Back in the old days it used to be doubleequals…

Offline

#3 2006-01-20 16:58:34

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: Comments comments comments...

FAQ

-Kurt


kurt@kurtraschke.com

Offline

#4 2006-01-20 17:14:45

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: Comments comments comments...

Strange to put those formatting instructions off-forum… Anyway, thanks Kurt!

So back to my initial question – any input?

The phenomena can be viewed here:

Try to click on a permalink and see how the comments end up…

Last edited by raveoli (2006-01-20 17:19:12)

Offline

#5 2006-01-20 19:03:49

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Comments comments comments...

Another FAQ ;) If you are using two article tags on one page, you’d better switch ‘Automatically append comments to articles?’ off.
Now it’s only showing two comment forms, but once comments are added, they will also show up in the head of your page ;)

Offline

#6 2006-01-20 22:31:30

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: Comments comments comments...

Thanks Doggiez, just what I was looking for. Kinda embarrasing I’m asking two questions, both of which could be answered by the FAQ, but nice to have the problem solved nevertheless…

Thanks again and have a great weekend!

Ehm, but why do they still show up twice in the top of the page for the comments preview? Can’t figure that one out … Is there any way to get rid of this and decide myself where that preview should go?

Last edited by raveoli (2006-01-20 23:02:44)

Offline

#7 2006-01-21 03:11:13

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

Re: Comments comments comments...

If you have “auto append” switched on then you can modify the “comments_display” form to show the preview, any existing comments and the comment_form in the order that you want them. There is a very useful tag, <code><txp:if_comments_preview><txp:else /></txp:if_comments_preview></code>, which can be used here. You will need to change the “article” tag in the sidebar to “article_custom”.

Last edited by thebombsite (2006-01-21 03:16:22)


Stuart

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

Offline

#8 2006-01-21 19:32:47

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: Comments comments comments...

I switched auto append of, and applied the comments display tags after the article display tags, but the comments preview still shows up below both of my article forms. How do I get rid of that? I only want the preview in one place on the page….

(I have two article tags on the same page, for reasons described in my top post)

Offline

#9 2006-01-23 01:01:07

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: Comments comments comments...

ahh – finally in this late hour the coin dropped. I can not say I’m the brightest head these days. Kinda winter lazy… Anyway, switched the article tag in the sidebar to an article_custom tag instead. Now the preview only appears once on the page, just like I wanted. Thanks man! Have an ‘ice day ;-)

Offline

#10 2006-01-23 05:39:16

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Comments comments comments...

I used <code>showalways=“1”</code> for my comments. Here’s what I use, if it helps. It isn’t the finest code, as it could probably be simplified, but it works…for now. Just have to get my gallery with categories working.

<code>
<txp:output_form form=“header” /><!—with the DTD, start of divs, and other junk—>
<txp:if_section name=”“>
<txp:article form=“photo” limit=“1” />
</txp:if_section>
<txp:if_section name=“gallery”>
<div id=“gallery”>
<txp:article listform=“gallery” form=“photo” limit=“1000” />
</div>
</txp:if_section>
<txp:output_form form=“footer” /><!—close the divs—>
</code>

form: photo
<code>
<div id=“image”><txp:article_image /></div>
<p id=“details”><txp:comments_invite showalways=“1” /></p><p id=“navigation”><txp:link_to_prev>&larr;</txp:link_to_prev>|
<txp:link_to_next>&rarr;</txp:link_to_next></p>
</code>

form:gallery
<code>
<txp:if_article_list>
<div class=“thumbnail”><a href=”<txp:permlink />” title=”<txp:title />”><txp:excerpt class=“thumb” /></a></div>
<txp:else />
<div id=“image”><txp:article_image /></div>
<p id=“details”><txp:comments_invite showalways=“1” /></p>
<p id=“navigation”><txp:link_to_prev>&larr;</txp:link_to_prev>|
<txp:link_to_next>&rarr;</txp:link_to_next></p>
</txp:if_article_list>
</code>

Offline

Board footer

Powered by FluxBB