Form redirection using AJAX

Hi,

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?

Thanks,

Last Updated date for blocks?

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)?

Views results displayed in a modal dialog

Hello,

I'm working with Drupal 8.7.4.

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.

Here is the code of the initial modal:

How to insert block in block in Drupal 8

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....

----------------------------------------------

Online Skill Test For Drupal 8 Developers

Hello Drupal Devs!

I created the new Online Test For Drupal Developers
https://drupalium.com/assessments/online-test-for-drupal-developers

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.

Trouble with open buttons/form action element in modal dialog.

Hi,

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;

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x