Silverstripe 评论模块不工作
Silverstripe comment module is not working
我已经安装了 silverstripe 评论模块,但是页面上的评论表单也没有出现,正如他们在 installation.md
中所说的那样
Out of the box the module adds commenting support to all pages on your site. This functionality can be turned on and off on a per page basis in the CMS under the Behaviour
tab for a given page. Once the Allow Comments
checkbox is ticked, republish and view the webpage.
但是 Allow Comments
复选框也没有出现
这是我的 composer.json :-
{
"name": "silverstripe/installer",
"description": "The SilverStripe Framework Installer",
"require": {
"php": ">=5.3.3",
"silverstripe/cms": "3.2.1",
"silverstripe/framework": "3.2.1",
"silverstripe/reports": "3.2.1",
"silverstripe/siteconfig": "3.2.1",
"silverstripe-themes/simple": "3.1.*",
"assertchris/hash-compat": "^1.0",
"colymba/gridfield-bulk-editing-tools": "^2.1",
"silverstripe/comments": "^2.0",
"silverstripe/lumberjack": "^1.1",
"silverstripe/tagfield": "^1.2",
"silverstripe/blog": "^2.3"
},
"require-dev": {
"phpunit/PHPUnit": "~3.7"
},
"config": {
"process-timeout": 600
},
"prefer-stable": true,
"minimum-stability": "dev"
}
我错过了什么?
只需添加
SiteTree:
extensions:
- CommentsExtension
comments:
require_login: true
在/mysite/config.yml
然后简单地“/dev/build?flush=1”
我已经安装了 silverstripe 评论模块,但是页面上的评论表单也没有出现,正如他们在 installation.md
中所说的那样Out of the box the module adds commenting support to all pages on your site. This functionality can be turned on and off on a per page basis in the CMS under the
Behaviour
tab for a given page. Once theAllow Comments
checkbox is ticked, republish and view the webpage.
但是 Allow Comments
复选框也没有出现
这是我的 composer.json :-
{
"name": "silverstripe/installer",
"description": "The SilverStripe Framework Installer",
"require": {
"php": ">=5.3.3",
"silverstripe/cms": "3.2.1",
"silverstripe/framework": "3.2.1",
"silverstripe/reports": "3.2.1",
"silverstripe/siteconfig": "3.2.1",
"silverstripe-themes/simple": "3.1.*",
"assertchris/hash-compat": "^1.0",
"colymba/gridfield-bulk-editing-tools": "^2.1",
"silverstripe/comments": "^2.0",
"silverstripe/lumberjack": "^1.1",
"silverstripe/tagfield": "^1.2",
"silverstripe/blog": "^2.3"
},
"require-dev": {
"phpunit/PHPUnit": "~3.7"
},
"config": {
"process-timeout": 600
},
"prefer-stable": true,
"minimum-stability": "dev"
}
我错过了什么?
只需添加
SiteTree:
extensions:
- CommentsExtension
comments:
require_login: true
在/mysite/config.yml
然后简单地“/dev/build?flush=1”