Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-01 19:26:06

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Two questions - comments display and linklist

Got two questions that a search does not help me find…

1. How to display comments from the latest comments first, then the rest of the comments?

2. How to have the txp:linklist tag display links that open in a new window?

Offline

#2 2007-07-01 20:42:43

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Two questions - comments display and linklist

2 – Construct your anchor link around txp:link_url so as to behave as you would like. (in your links form)

Last edited by rsilletti (2007-07-01 20:43:34)

Offline

#3 2007-07-03 06:42:12

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Two questions - comments display and linklist

Thanks Rick I will take a look at that tag, did not know about it before.

Anyone help with my point 1 above re showing latest comments first?

Offline

#4 2007-07-05 20:50:11

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Two questions - comments display and linklist

Comments displayed first to last? Anyone done this or know how to?

Offline

#5 2007-07-05 21:08:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Two questions - comments display and linklist

The comments tag does that by default.

Offline

#6 2007-07-05 21:43:27

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Two questions - comments display and linklist

And if you want to reverse the order, add sort="posted DESC" as an attribute to the <txp:comments /> tag (you do need txp 4.0.5 for this to work).

Last edited by ruud (2007-07-05 21:43:55)

Offline

#7 2007-07-06 07:09:02

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Two questions - comments display and linklist

Awesome! Thanks Ruud I will update that site to 4.05 later today and try it out…

For my second question above – using linklist tag to output links that open in a new window – is that possible with 4.05? Currently, the links open in the same window. ?

Edit: Thanks again Ruud! Comments now display from first-to-last after upgrading to 4.05 and adding the new “sort” option.

Last edited by jstubbs (2007-07-06 20:28:47)

Offline

#8 2007-07-09 00:34:03

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Two questions - comments display and linklist

As Rick said above, customize your link form that you’re using. :)

Last edited by Mary (2007-07-09 00:34:13)

Offline

#9 2007-07-09 07:06:54

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Two questions - comments display and linklist

Yes Mary!! ;-) I will get around to it later today, thanks to you and Rick for the suggestion…

Offline

Board footer

Powered by FluxBB