Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
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
Pages: 1