GraffitiCMS 评论表
在 GraffitiCMS v1.2 中,我尝试在我的博客文章中包含评论表单,但提交按钮没有执行任何操作。该帖子已启用评论,并且我已将 $macros.CommentForm() 包含在 blog.post.view 文件中。我还确认根目录中存在必要的 Ajax.ashx 文件。还有其他依赖吗?
是否有任何地方张贴了任何说明来解释如何进行这项工作?我已经用谷歌搜索了几个小时,但找不到任何东西。
注意:我目前无法升级到 v1.3。希望在未来的项目中。
In GraffitiCMS v1.2, I'm trying to include the comment form on my blog posts, but the submit button does nothing. Comments are enabled for the post, and I've included $macros.CommentForm() in the blog.post.view file. I've also confirmed that the necessary Ajax.ashx file exists on the root. Are there any other dependencies?
Are there any instructions posted anywhere that explain how to make this work? I've been Googling for several hours and can't find any.
NOTE: I cannot upgrade to v1.3 at this time. Hopefully on a future project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明,我已经按照 Jeremy H 的建议进行操作,并调用 $macros.Head(),但我对 jQuery 的使用与 Prototype 发生了冲突。我通过在 before
$macros.Head()
中链接 jQuery 并切换所有 jQuery $ 标记以使用实际的 jQuery 函数名称解决了该问题。https://learn.jquery.com/using-jquery -核心/避免冲突其他库/
It turns out that I was already doing as Jeremy H suggested, and calling
$macros.Head()
, but my use of jQuery was conflicting with Prototype. I resolved the problem by linking in jQuery before$macros.Head()
and switching out all my jQuery $ tokens to use the actual jQuery function name.https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/
您需要确保页面上链接了
/__utility/js/graffiti.js
和/__utility/js/prototype.js
脚本。调用$macros.Head()
应该会自动执行此操作。You need to make sure you have the
/__utility/js/graffiti.js
and/__utility/js/prototype.js
scripts linked on your page. Calling$macros.Head()
should do this automatically.