Add a link to comments-field (alongside edit)
Heyjo Guys!
I got rid of the 'Top of Page' Link (CSS), since I thought that's what the keyboard is good for.
My unthankful users disagree. Not only that, they want a 'Top of Page' Link with every single post.
(We got looong threads...) You know besides 'edit', 'delete' and stuff.
Is there an easy way to accomplish this (edit an existing extension maybe)?
Thanks for any hints!
0
This discussion has been closed.
Comments
Something like position: fixed in CSS would be cooler... but I can't for the life of me get the right selector...
function CommentGrid_TopOfPage(&$CommentGrid) { $CommentList = &$CommentGrid->DelegateParameters["CommentList"]; $CommentList .= '<a href="#pgtop">' . $CommentGrid->Context->GetDefinition('TopOfPage') .'</a>'; } $Context->AddToDelegate('CommentGrid', 'PostCommentOptionsRender', 'CommentGrid_TopOfPage');