GraffitiCMS 评论表

发布于 2024-09-08 21:50:02 字数 249 浏览 3 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

£噩梦荏苒 2024-09-15 21:50:03

事实证明,我已经按照 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/

甜心小果奶 2024-09-15 21:50:02

您需要确保页面上链接了 /__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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文