Ajax Dialog
Displaying 1 - 2 of 2Open Ajax Dialog with JavaScript
Drupal is fully integrated with jQuery and Ajax, but still suffers from a lack of documentation,
Here I'm going light things a bit, helping you to create & understand how drupal creates pop-up dialog from the js script running on the current page.
Code Snippet
var ajaxSettings = {
url: '/node/1',
dialogType: 'modal',
dialog: { width: 400 },
};
var myAjaxObject = Drupal.ajax(ajaxSettings);
myAjaxObject.execute();
How To Open A Node Form In An Overlay Modal by LINK or MENU
I have a view with nodes of type 'tasks'. I want to easily view and edit these tasks using a minimized overlay. When I click on a task title in the view, it must open in an overlay.
In Drupal 7, this was possible with the core overlay module and the Overlay Paths module.
The core overlay has been discontinued in Drupal 8, in favor of a 'back to site' link, which does not serve my purpose of showing a minimized popup block.
It also needs to be used by authenticated users, not only administrators.