Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-29 12:26:26

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Two questions I couldn't easily find the answer to

Is it possible to use TXp if tags with activating comments on a per category basis, example:

I have a featured section and want teh article to allow comments, the article is categorized as a featured and a print category. When I activate comments the comment box shows up in the print category as well as featured and I don’t want it to I just want the featured to be commentable.

Next question I spent a while searching the txp_zemcontact forum and could not find an answer but how do i change the thank you message after the mail is sent? I couldnt even find it in the php of the plugin to change it.

Thanks once again for your help


Grrr RRR nnndth grrr Skeek!

Offline

#2 2006-12-29 12:46:47

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

Re: Two questions I couldn't easily find the answer to

answer to second question: set the “thanks” attribute of the zem_contact tag (assuming you use zem_contact_reborn): thanks="my thanks message"

Offline

#3 2006-12-29 15:08:04

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

Re: Two questions I couldn't easily find the answer to

Or, if it’s longer, put it in a form: thanksform="mythanksform".

About your first question: do you mean that category 1 is ‘featured’ and category 2 is ‘print’; if you go to an individual article from the ‘print’ category page you don’t want to show the comment form, and if you go there from the ‘featured’ category page you do? I doubt if this is possible, because the individual article will be the same in both cases.

Offline

#4 2006-12-29 15:29:34

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

Re: Two questions I couldn't easily find the answer to

Almost… it’s: thanks_form="mythanksform"

Offline

#5 2006-12-29 16:20:49

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

Re: Two questions I couldn't easily find the answer to

Oops… Thanks Ruud!

Offline

#6 2006-12-29 17:05:56

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: Two questions I couldn't easily find the answer to

I haven’t tested this, but it should be easy to see if it works on your site. Go to Presentation > Forms > comments_display, and try revising it like so:

<txp:if_category name="featured">

[existing contents of your comments_display form]

<txp:else />

</txp:if_category>

Last edited by reid (2006-12-29 17:09:23)


TextPattern user since 04/04/04

Offline

Board footer

Powered by FluxBB