In the existing system, anchors for comments are provided as

<a id="comment-34"></a>
<div class="comment">...

This patch gets rid of the <a id anchors and puts them inside the <div which provides the same functionality, with more usefulness for css and scripting down the track i.e.

<div id="comment-34" class="comment">.

Affected files are comment.tpl.php in each theme, as well as comment.module for the default theme and to remove the a tag.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vik4’s picture

Title: Changed anchors for comments » Changed anchors for comments (update)
FileSize
3.36 KB

That patch only changed comment.module and didn't include the template files.

drumm’s picture

Category: feature » task
Status: Reviewed & tested by the community » Needs work

Good patch, but theme_comment_folded() needs the id as well.

Please be sure to set patches that haven't been reviewed by a second person to "code needs review" instead of "ready to commit."

vik4’s picture

Status: Needs work » Needs review
FileSize
3.9 KB

Righto - fixed that.

drumm’s picture

Status: Needs review » Needs work

No longer applies to HEAD.

patching file themes/engines/phptemplate/comment.tpl.php
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file themes/engines/phptemplate/comment.tpl.php.rej

vik4’s picture

Status: Needs work » Needs review
FileSize
4.22 KB

fixed (finally got around to using CVS rather than the cvs tarball)

drumm’s picture

Version: x.y.z » 6.x-dev

Since this requires changing themes, it will have to wait for 6.0.

bdragon’s picture

Status: Needs review » Needs work

Doesn't apply anymore, and probabaly needs a rewrite, what with all the theme system changes that have happened.

bdragon’s picture

Version: 6.x-dev » 8.x-dev
Component: theme system » comment.module

Bumping to D8.

jhedstrom’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

Comment markup has gone through much evolution since this patch was added 9 years ago. At this point, I think using the anchor tag instead of a div is intentional as it allows users to easily get a direct link to the comment. Closing for now.