开发者

Why can't I see attachments to comments in the array-shift profile of Drupal?

开发者 https://www.devze.com 2022-12-31 23:38 出处:网络
Why can\'t I see attachments to comments in the array-shift profile of Drupal? When I used the Array Shift theme in the array-shift profile of Drupal, I can\'t view attachments in the comments, but if

Why can't I see attachments to comments in the array-shift profile of Drupal? When I used the Array Shift theme in the array-shift profile of Drupal, I can't view attachments in the comments, but if I switch the theme to Garland, I can magically see the attachment then. Why? How can I get the array-shift theme to display the attachments, 开发者_运维百科too? I've tried tinkering with views, template files, admin settings all with no success.


The problem was that the Garland theme was using a field rowstyle, which showed the attachment table, and the array-shift theme was using a node rowstyle, which will not show the attachment information without coding it into the file. I had to use code like this:

echo $field_attachment[0]['filename'];

in the node.comment.tpl.php file. Using the devel module showed me exactly what field names to reference for this.

0

精彩评论

暂无评论...
验证码 换一张
取 消