Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is a save button on the 'Add Term' page in Taxonomy. You can add a term and click save and Drupal takes you back to the 'Add Term' page again. If I want to redirect to some other page after clicking the save button, how should I do it?
I am working with Drupal 8 and on our content listing page we can sort our list of pages by the date a page was last updated. However, the "Updated" date only reflects the date when the "layout" of a page is edited, not when a "block" within a layout is edited. We have multiple people editing our website and we can't tell on our content listing page if someone has updated a block within a page (we can see this if we view log files, but our files only go back one day). Is there any way to easily view the "Updated" date for pages that have had any sort of update (layout or blocks)?
I made a view form in a modal and it works fine, the fields to chose appear in the modal and i can submit the research from it.
So now, i wish to display the results in the same modal. Currently, the results appear in an entire new page and actually i don't know how to do for having the results in the initial modal.
How to insert a block inside another block in a Drupal 8 way?!
Is there any Module or Code snippet to do this?!
a) there used to be Insert Block module for drupal 7, they had an early alpha in some 2015, with many later complaints, and no development from those times;
b) there is a Block Field module; I've never tried out the Block fielding feature, may be that could do....
c) I lnow how to insert a View inside a Node text field by Code.... may be that would do for a custom block too....
Test your Drupal 8 skills online before the technical interview!
This free online test is designed to help you to evaluate your technical knowledge in Drupal 8 backend development.
I am trying to open a modal dialogue using the code that is given in the documentation. But the modal dialog is not opening. Please let me know what is going wrong in my code. I appreciate your help.
<?php
/**
* Implementation of hook_form_alter
*/
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Ajax\OpenModalDialogCommand;
use Drupal\Core\Ajax\ReplaceCommand;
use Symfony\Component\DependencyInjection\ContainerInterface;