Comments (2)
There is an extension point in CommentingController.php, method CommentsForm, that can be used to alter the form:
$this->extend('alterCommentForm', $form);
If you create an extension with the alterCommentForm method and apply this to the CommentingController you will be able to manipulate the following:
- Which fields appear
- Their order
- Add new fields optionally
- Add CSS classes to fields which can then be used to affect the layout
from silverstripe-comments.
Yes, using the hook and setting a template to use against the form object would work.
However, the issue tracker is for bugs and this kind of support request should be posted to the forums
from silverstripe-comments.
Related Issues (20)
- Content is saved plaintext into cookies. HOT 1
- 'use_preview' => true - doesn't seem to work HOT 3
- frontend_moderation: false doesn't seem to do anything HOT 1
- Clicking "select" checkbox in Comments GridField takes you immediately to GridField edit form HOT 1
- Showing comments from another Page HOT 1
- BUG CommentAdmin permission not available in Permissions tab HOT 3
- RSS feed for pre-SS4 comments doesn't work for blog posts HOT 1
- Docs missing information about $CommentsForm Tag HOT 3
- action checkboxes broken HOT 2
- CommentsExtension->canPost is deprecated HOT 2
- jQuery validation shows required to non-required fields
- Comments UI needs a refresh
- CommentAdmin layout is broken
- Comment 'Name' and 'Email can be manipulated even if CommentsRequireLogin is true
- Trying to get in touch regarding a security issue HOT 2
- Can't install on SS4.9 HOT 1
- Can't display $CommentsForm for DataObjects HOT 1
- Only user with full admin right can comment HOT 1
- require_login: false, best spam protection HOT 1
- how to remove "email" and "website" inputs from comment form HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silverstripe-comments.