Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-29 02:11:52

matthewwithanm
Member
Registered: 2006-09-28
Posts: 12

different comment ids

I’m try to wrap my head around TP and bumping into a couple of issues..

When I post a comment, it redirects to, for example, my-article#c0000010. However, no comments have the id “c0000010” and if i try using id=“c<txp:comment_id />” in my comment form, the ids don’t match up. How do I get the hash that it’s redirecting to?

Thanks very much for the help.

Offline

#2 2006-10-29 02:15:17

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

Re: different comment ids

…if i try using id="c<txp:comment_id />" in my comment form, the ids don’t match up.

Would you elaborate?

Offline

#3 2006-10-29 04:49:36

matthewwithanm
Member
Registered: 2006-09-28
Posts: 12

Re: different comment ids

Sorry, I was mistaken. The id in the redirect hash actually does match the newly posted comment id. However, it’s redirecting to the wrong page because (I think) of a plugin I’m using.

So is setting my comments’ id attributes to “c<txp:comment_id />” what I’m supposed to be doing, then? I expected the comment_id tag to return something like “c0000010” (which the comment form redirects to after posting) but was surprised to found it only returned the number.

On an unrelated note, I have several categories (and subcategories) set up as follows:

parent_A
- child_A1
- child_A2
- child_A3
parent_B
- child_B1

etc.

But when I go to mysite.com/?c=parent_A, the articles in its child categories don’t show up. Am I doing something wrong or is this the default behavior, and if so, can it be changed? Also, how do I change the template for the category pages?

Thanks again for the help!

Offline

Board footer

Powered by FluxBB