Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Two small comment questions
ONE
I cannot see how to turn off comments on a section by section basis, although this makes a lot of sense to me. For example, it is not likely that comments on static pages make sense on most sites. However, I do not think this is possible. As a workaround I have used if_section in page code. Comments are on everywhere but simply not visible in certain sections. Is this the correct approach?
TWO
The default comment_message_input is rather small, but there seems to be no options to enlarge it. Any workarounds? I would really like a textarea as big as the one I am currently typing into.
robin
Offline
Re: Two small comment questions
Let me answer my own questions after far too many hours spent in the maze of comment code.
ONE
Yes it is.
TWO
@ <txp:comments_form msgcols=“40” isize=“40” msgrows=“8” />
robin
Offline
Re: Two small comment questions
by default, comments are appended to your articles. you can turn this off in your preferences. if you turn them off then all you would have to do is create a form (that includes the necessary comment tags) and then use that form specifically for the section(s) where you do want comments to accompany your articles.
if you leave automatically appended comments on, you could also omit them from wherever you want by simply just using a different form for sections you dont want comments to appear. for example, on my site i just leave automatic comments on. but on the static pages you dont see comments at all (ie contact section). all i did was create a form with only a <txp: body /> tag within it.
theres no permlink on the title to view that specific article in the contact section so they wouldn’t see any type of comment information at all. (of course they could randomly type in article id’s in the url if they wanted to, and if they somehow guess the right one they could see the “comments are not turned on for this article” comment or whatever it says but thats highly unlikely)
Offline
Re: Two small comment questions
Thanks, iota, I have got that far, and have a full comment system written (after about 8h work) with sed_comment_pack in use so I can pick out the author’s own comments.
Now i need to make the preview/submit process clearer, but thankfully have just found this post on the subject.
robin
Offline
Pages: 1