Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-29 18:50:39

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 169
Website

Globally change the comments invite

As I understand it, making the change in site preferences merely pre-fills the invitation space that appears when you write an article. What if you wanted to change the invitation for all articles in one swoop?


Mark

Offline

#2 2006-06-29 19:17:14

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Globally change the comments invite

If you use the same invite-text on all comments, you could simply hardcode the text in the article-form where you link to comments. Also leaving the comment-invite field empty on article pages will automatically default to the currently set value in preferences. other than that you can also run a quick UPDATE textpattern SET AnnotateInvite = 'Leave a comment, mkay.' query on the textpattern table

Offline

#3 2006-06-29 19:55:32

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 169
Website

Re: Globally change the comments invite

Could you please give an example of how hardcoding the text in an article-form would work?


Mark

Offline

#4 2006-06-29 22:37:42

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Globally change the comments invite

<a href="<txp:permlink />#comments">Look ma, no hands</a>

Of course you can adjust the anchor according to whatever anchor you have on your page.

Offline

#5 2006-06-29 22:42:22

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

Re: Globally change the comments invite

The <txp:comments_invite /> tag also displays the number of comments, if any. If you don’t want to lose that, you can add something like
<code>
<txp:if_comments> (<txp:comments_count />)</txp:if_comments>
</code>

Offline

Board footer

Powered by FluxBB