编辑评论时显示节点
编辑注释时,注释单独显示,没有关联的节点。我没有找到将评论编辑表单与节点一起显示在同一页面上的解决方案。创建新评论时,我可以将 Drupal 配置为在同一页面上显示两者。我想过 通过模板文件修改评论表单并将节点包含到该模板文件中,但我认为,这是一个丑陋且困难的解决方案。
预先感谢您的任何提示,Gregor Hyneck
When editing a comment, the comment is shown alone, without its associated node. I found no solution to show the comment editing form together with the node on the same page. When creating a new comment, I can configure Drupal to show both on the same page. I thought about
modifying the comment form by a template file and include the node into this template file, but I think, this is an ugly and difficult solution.
thanks in advance for any hints, Gregor Hyneck
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能这样配置它。但如果您愿意创建一个模块,所需的代码很简单:
显然,您的生产代码将需要一些额外的测试,以避免节点在每个注释表单上呈现。而且您可能不需要通用的 theme_node,而是自定义的 theme_node,仅渲染节点的基本要素(标题+预告片等)。
You cannot configure it as such. But if you are willing to create a module, the code needed is simple:
Obviously, your production code will need a few extra tests to avoid the node from rendering on each comment-form. And you probably don't want the generic theme_node, but a custom one, rendering only the essentials of the node (title+teaser or so).