New answers tagged comments
0
votes
Stick comments on top
I would do the following:
Add a new field to the comment with a field name of field_sticky.
Create a view, showing comments, with a page display.
Set the path of the display to whatever you want the ...
- 16.4k
1
vote
Accepted
Module template for a comment field is not triggering comment_preprocess_field
Use base hook, instead of base_hook (no underscore):
function MODULE_theme() {
return [
'field__field_FIELD_NAME' => [
'base hook' => 'field',
]
];
}
That should invoke the ...
- 165k
Top 50 recent answers are included
Related Tags
comments × 8427 × 329
8 × 105
theming × 103
views × 99
nodes × 95
forms × 73
users × 70
entities × 45
rules × 36
6 × 27
hooks × 20
ajax × 20
9 × 19
rating × 16
database × 11
paging × 11
javascript × 10
media × 10
navigation × 10
blocks × 9
advertising × 9
notifications × 8
emails × 7
panels × 7