Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-04-10 21:09:48

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

Re: whatfor you use comment_anchor?

And that is possible:

Use wraptag ul and an empty break-value. In the form that displays your individual comments, you can then use an li-tag with an id that has <li id="c<txp:comment_id />">.

Unfortunately there is currently no direct way to prevent permlink from outputting the id again (though we can add that to the next maintenance release – 4.0.4).
Until then you can ignore the error, or workaround it by simply not using the comment-permlink-tag and instead “creating” it yourself by using the permlink of the article like this: <a href="<txp:permlink />#c<txp:comment_id />">#</a>

As you can see in this example it achieves the desired result.

Offline

#14 2006-04-11 07:56:11

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: whatfor you use comment_anchor?

I have thought about something like that, but somehow I got the impression that whole thing happens automatically, since I have auto append comments on. It forms the ol and everything itself, so I would require a little more alteration I guess. I should then probably turn off the ordered list thing too and add that myself aswell.
That all is no problem of course, but it would be really cool if it came by default that way.

Cheers.

Offline

#15 2006-04-11 08:40:13

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

Re: whatfor you use comment_anchor?

It forms the ol and everything itself, so I would require a little more alteration I guess.

No, you simply add the wraptag and break attributes to your comments form. The ol-setting in the admin-panel has become superfluous when we greatly expanded comment-flexibility. It is only still there for backwards-compatibility to prevent “unwanted” changes for upgraders.

that whole thing happens automatically, since I have auto append comments on.

“auto append comments on” doesn’t do any magic, it simply attaches what’s in your comments_display form at the bottom of your article-form in certain cases.

Offline

#16 2006-04-11 12:05:03

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: whatfor you use comment_anchor?

Oh my god. That worked like a charm! :)
Thanx Sencer!

Offline

Board footer

Powered by FluxBB