The Drupal project's documentation is created and maintained by the same volunteer community that creates the Drupal software. You can read Drupal case studies to see what modules and tools others are using for their projects, which can give you some great ideas and tips. There is a lot of ground to cover in Drupal, so in addition to our tutorial resources listed above, here are some tips and tricks from our trainers for learning how to use the Drupal content management system.Ī lot of people are building sites with Drupal. Of course, you can also always search our site to pull up a wide range of materials based on your keyword. They are more specific topics grouped by major category, like Theming or Module Development, and let you zero in on exactly what you need right now. In the module's directory create a directory structure src/Plugin/ActionĬreate in it a new class file for the action to change the state of the entry into Published.If you have the fundamentals sorted out, but you need a refresher, or are taking on a new task, you can go straight to the information you need by browsing through our Guides and Topics. In my case, the module's name is d_workflows Own action codeĬreate your own module end enable it. Draftor Archived, which are not being published by definition. ![]() It will block the display of entries that have a state of e.g. If added is a filter restricting entries to published only Content: Published (= Yes) then remove it. a filter that will limit the display of entries of the Article type.a field displaying the state of a given entry - Content: Moderation state.This operation will add a new field to every add/edit article form. ![]() On the page admin/config/workflow/workflows edit the Editorial type.Go to the page with modules - admin/modulesĮnable the modules: Workflows and Content moderationįor the purposes of this post, I will use automatically-defined states for the Editorial type, which is available immediately after enabling the Content moderation module.Īll you need to do is enable a given type of state transition for the selected content types. In order to do this, you need to enable two additional modules that are directly in Drupal, you do not need to additionally download anything. The goal is to add your own actions on entries (Content) that will change the state (Workflows) of the selected entries.Įntry states are not available immediately after Drupal installation. ![]() If you add the view that displays Users, you will notice that the list has different actions. The above list is compatible when the view displays Content. ![]() There are over a dozen predefined actions, such as: In the field configuration, you can mark which mass actions can be performed on the results. It is not necessary, the checkboxes on the table simply look more natural Add a new Content view that creates the page.composer require drupal/views_bulk_operationsĪfter installation, the module does not need to be configured in any way, you just add the appropriate field to the page (or block) created by the Views module. The Views Bulk Operations module can be installed by downloading and unpacking the package in the modules/contrib directory or by using the composer command, which will download the latest stable version of the module. If you know what you are doing and you have reasons for it, you can turn off the queuing option in the field configuration. The action is performed on all selected entries and automatically performed in Batch queues so as not to overload the system and not to "crash" the page when the process takes too long. In this example, I will show you how to add your own action that will change the state (Workflows) of selected entries. The Views Bulk Operations module is used when performing bulk operations on results to tables or other items created with Views.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |