资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

FOSCommentBundle功能包:在页面中启用评论-创新互联

  • 原文出处:4-enable_comments_on_a_page.md

    目前累计服务客户上千家,积累了丰富的产品开发及服务经验。以网站设计水平和技术实力,树立企业形象,为客户提供网站建设、成都网站建设、网站策划、网页设计、网络营销、VI设计、网站改版、漏洞修补等服务。成都创新互联始终以务实、诚信为根本,不断创新和提高建站品质,通过对领先技术的掌握、对创意设计的研究、对客户形象的视觉传递、对应用系统的结合,为客户提供更好的一站式互联网解决方案,携手广大客户,共同发展进步。
  • 原文作者:FriendsOfSymfony

  • 授权许可:创作共用协议

  • 翻译人员:FireHare

  • 校对人员:

  • 适用版本:FOSCommentBundle 2.0.5

  • 文章状态:草译阶段

Step 4: Enable comments on a page

The recommended way to include comments on a page is using the reference javascript provided. The javascript will asynchronously load the comments after the page load.

在页面中包含评论的推荐方式是使用javascript提供的引用。javascript将在页面加载后异步加载评论。

Note:The implementation javascript provided with FOSCommentBundle relies on jQuery 1.7 You will need to install this separately and make sure that it is available on the page you want to enable comments on.

注意:FOSCommentBundle提供的javascript实现是基于jQuery 1.7的。因此,您需要独立安装它,并确保它在您想启用评论的那个页面中是可用的。

You are welcome to rewrite the reference implementation using another javascript framework.

欢迎您使用其它的javascript框架来覆写该引用的实现。

And the following code at a desired place in the template to load the comments:

在模板需要的地方添加下列代码将加载评论:

{% include 'FOSCommentBundle:Thread:async.html.twig' with {'id': 'foo'} %}

That's the basic setup! For additional information and configuration check the ... section and the cookbook.

这是基础设置!更多信息和配置,请参阅 ... 章节和食谱

Any problem?

还有问题?

Check our FAQ.

请查阅我们的 FAQ。

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前名称:FOSCommentBundle功能包:在页面中启用评论-创新互联
转载源于:http://cdkjz.cn/article/iiigd.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220