Thanks for the answer JD, but I want the user picture to be loaded in the form comment, beside the comment field. The link you pointed shows the solution to display the picure in the comment itself. I'd really like to add "user picture" to the left of the subject text facebook-style I am at the last stages of cleaning up my first Drupal site and getting to know my way around Drupal. Of all the "help" I've read up on over the last month, this was probably the best I have come across.
Also your follow up needs to be complemented on. Well Done! Thank you, Veronica! Thanks you very useful But i have question. Oneng: It looks like comment body is wrapped with other elements and needs some special handling.
To determine this, you will need to use dsm or some other method of debugging to view the form array for that field. This would go within your theme template. You can tell how to add the names of the sub-fields in the form adding comments? Contact Form Theming Basics The default comment form in D7 is just like D6, contains fields for name, email, homepage, subject, and comment.
Overriding the Form in template. Form Manipulation First I want to group some of the fieldsin my comment form into a fieldset. Meet the Fall Digett Interns! Email The content of this field is kept private and will not be shown publicly.
About text formats. Plain text Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically. Don't forget that you can add additional fields to comments in D7! Nice catch, Benjamin! I made the changes to the post to reference those options in D7. I just discovered this blog from Drupal Planet. Nice design, love it. We're glad you like. Take a look around and feel free to subscribe to our RSS feed!
This is really helpful I am just getting into Drupal. A couple of questions Any help is appreciated! Vince, Welcome to Drupal! Vince, Make sure you've allowed Anonymous posters to leave contact info.
Thanks again, and this is a great article. Glad to help! Dan, Nice Catch. Last updated on 7 December The comment. Can be link or plain text. Possible values are: comment-unpublished, comment-published or comment-preview. The default values can be one or more of the following: comment: The current template type, i.
Most Drupal themes come with a minimum of 3 default template files: html. And many other template files used to control the display of more specific elements such as comments or individual fields.
Each of these files can be overridden for a specific condition simply by creating a new drupal tpl file in the theme folder with the correct name. The most common and overriding concept we used to follow is to not includ in the default list is the page. I need to insert the comment form directly to the node template I use node- type. Within the normally collapsed fieldset for the comment options, you can choose whether to display the comment form on a separate page or on the same page as the node.
As for the missing submit button, you can change the setting for 'comment preview' from mandatory to optional. As for the preview button doing nothing, this sounds strange and I have no idea what might cause this - pressing it would normally lead to a preview of the entered comment, with the option to finally submit it.
If this problem persists, you should open a separate question for that. Comment form is not in scope in node-type. Technically you could add it there trough variable preprocessing. But that will introduce a whole new set of problems.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
0コメント