Content Modeling Flashcards
How to Administer and Approve Comments
Go to Manage > Content > Comments . You can look at the published comments page and select one or more comments to unpublish or delete using the checkboxes next to each comment. Then use the dropdown above under “Update Options” to select one of the following options from the list: Unpublished or Delete.
To approve unpublished comments click the “Unapproved Comments” tab and select whether to publish or delete comment.
Detailed Comment Documentation
When enabled the Drupal comment module creates a discussion board for each Drupal node. An administrator can give comment permissions to user groups, and user can (optionally) edit their last comment.
User control of comment display
Attached to each comment board is a control panel for customizing the way that comments are displayed. Users can control the chronological ordering of posts and the number of posts to display on each page.
Additional settings include:
Threaded – Displays the posts grouped according to conversations and subconversations.
Flat – Displays the posts in chronological order, with no threading whatsoever
Expanded – Displays the title and text for each post.
Collapsed – Displays only the title for each post.
When a user chooses save settings, the comments are then redisplayed using the user’s new choices.
Note: Administrators can set the default settings for the comment control panel, along with other comment defaults in administer»_space; comments»_space; configure.
Additional Comment Configurations
Comments behave like other user submissions in Drupal. Filters, smileys and HTML that work in nodes will also work with comments.
Administer»_space; Access control»_space; permissions
Access comments – allows users to view comments
Administer comments – Allows users complete control over configuring, editing ,and deleting all comments.
Post comments – Allows users to post comments into an administrator moderation queque.
Post comments without approval – Allows users to directly post comments, without the administrator having to publish the comments.
Create a New comment type
Navigate to admin/structure/comment –Add a title description and choose the entity type “content”. This will make the comment type available to use , when you add the comment field to your other content types.
User Permission for Content
You have to be an administrator to configure user permission.
Go to Administer > People > Permissions.
In the comments section enable or disable permissions for each role: administer comments and comment settings view comments Post comments Skip Comment approval Edit own content.
Administer a content type’s comment settings
Go to the Content Type - Manage Fields - Click Edit next to Comment. Here you can specify several different settings (some options will not appear until you’ve selected a certain setting).
Adding fields to the comments for a comment type
You can add a number of types of fields to Comment type.
Choosing and installing multilingual modules
Unlike previous versions of Drupal, most of the functionality that you need to build a multi-lingual site is provided by the following 4 modules in Drupal core, rather than a suite of many contribute modules. Language Local (Interface Translation) Content Translation module Configuration Translation
Language Module
The base module needed for any non-English or multi-lingual site. Allows users to configure languages and how page languages are chosen and apply languages to content. We can assign a language to everything, nodes, users, views, etc.
Local (Interface Translation) module
Translates the built in user interface your added modules and themes. Whenever the Interface Translation module encounters text, it tries to translate it into the currently selected language.
The Interface Translation module provides two options for providing translations. (you can import translations .po files or you can use integrated web interface).
Note: Enabling the Interface translation module itself does not create or add any translations to the site. You need to import translations or create string translations.
Content Translation Module
Allows users to translate content entitites. Allows you to to translate your site content into different languages
In Drupal 8, the main method for translating content is to use the core Content Translation module. Only a single node or entity is created. The entity is language independent.
To configure Configuration - Content languages and transition
This module allows you to decide whether each type of content entity should be translatable or not.
Configuration Translation
Provides a translation interface for configuration such as field labels, text used in Views, site name, etc
Install a Language
Enable the Interface Translation module
Go to the language config page
Add the languages you want
Set a default language (never change default language otherwise it will break)
Continue with the Automatic or Manual method below to update translations.
Automatic method – make sure update manager module is enabled. Go to Reports - Available translation updates - click the link check manually
Manual method – download the translation files from localalize.drupal.org
Upload translation files to your site.
Enable Language negotiation
By default, Drupal includes support for language negotiation using a variety of methods. This means your site can offer multilingual content without forcing the user to choose their language before entering the site. No need to use a splash page to choose a language when you use Drupal.
Built in methods for negotiating language: URL Session parameter User (follow user's language preference) Browser (determine language of browser) Default language
You can enable and re-order these methods in Configuration - Regional and Language - Languages > Language Detection and Selection