Questions tagged [modal-dialogs]

Use it for questions about modal popup dialogs, including the overlay implemented in the Drupal 7 Overlay module.

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
1k views

How do I theme a modal popup?

How can I style Drupal 8 modal window to achieve Instagram style and behaviour? I'm creating modal through extending ControllerBase class, thus have full control of content. However I can't figure it ...
2
votes
0answers
300 views

Why does my chart created with Easychart not display a chart if number of points are more than 1000?

I installed Easychart module 7.x-3.7 in my Drupal 7.51 site. I'm using Highcharts 4.2.7 in libraries 7.x-2.3. In the example contenttype easychart_ex, I tried uploading a data.csv file with number ...
2
votes
1answer
418 views

Why does “Cancel People Account” not work?

I have Drupal 7 with Devel installed running over PHP internal server and MySQL. All user operations work correctly except Admin>People>Cancel Account operation. This leads to the overlay Add User ...
2
votes
0answers
606 views

How to close overlay on background click

Please help me to make overlay closed on background click. I am trying with following code but it is not working: jQuery('.overlay-modal-background').live('click', function(e) { Drupal.overlay....
2
votes
2answers
1k views

How to close the overlay after form submission

In order to be able to quickly edit Fullcalendar items, I altered the node edit form of the specific content type so the events are saved with AJAX and the page doesn't have to reload. However, I don'...
2
votes
1answer
876 views

Modal form file upload is not working

I am trying to use ctools modal form to edit node form. This form is containing a file field. The Form is rendering properly. When I try to upload a file on clicking upload button, file field has been ...
2
votes
0answers
93 views

Changing default overlay behaviour to not return to the top of the screen

I have a custom module which displays a page as an overlay, however when you click on the link it displays the overlay but the background page now returns to the top. This behaviour can be seen when ...
1
vote
1answer
37 views

Display status message after submitting modal popup form

Ok so i have a custom entity and want to display a custom delete form. Have created the Route and everything works except for Drupal messenger displaying status message after submission, even after a ...
1
vote
0answers
10 views

Dynamically added params for a link not found when the link is opened with a dialog

I do not know if it has to do with JavaScript/Ajax or with Drupal's dialog modal. Any advice is appreciated. On our project we open several links in a modal. For this the link is rendered in the ...
1
vote
1answer
31 views

Issue regading custom form

https://wineshipinsure.com/newdrupal/ex81/helloform I have been using the custom form and followed all the process for creating the custom form but my form is not working and every time getting page ...
1
vote
0answers
29 views

8 - How can I update the entity reference fields of the form when I close the modal?

How can I update the entity reference fields of the form based on selection in the modal dialog when I close the modal ? I have a form and users starts fill the form. Then click on choose address ...
1
vote
0answers
58 views

Open Paragraphs-item into an entityform

I have a profile page with many paragraph sections. I am trying to open the input form for every paragraph separately into a modal form. I don't want to manually build a form for each paragraph. The ...
1
vote
0answers
29 views

Node Update - Overlay

I have a problem on saving a specific node. When I try to save it the overlay doesn't disappear, but the node is correctly saved and updated. If I change node title everything works good. I attach an ...
1
vote
0answers
22 views

Linking to internal pages from the overlay

I have set up a dashboard to work as a main hub for all things related to my current site. I have quick links to internal pages on my site. I would like to know how I can link to those pages from the ...
1
vote
0answers
334 views

Node edit form in overlay for selected content types

I am using Drupal's core Overlay module along with Overlay Paths to display certain forms in overlay pop up. I have three content types and for one content type I want the node edit form to appear in ...
1
vote
0answers
317 views

shadowbox + content page showing full content in other language when not logged in

I have a dual language site (English and Arabic). I am using shadowbox + content page modules to display node content (without header, footer,menu sidebars etc) in an overlay. Everything works like a ...
1
vote
1answer
59 views

Has anyone worked on a built-in CLI terminal [w/ drush]?

What would make my experience with clients/end-users easier is if there was a self-contained GUI-like terminal that would be exclusive to their drupal 7 subsite in a multi-site configuration. This ...
1
vote
0answers
326 views

redirect to a url with fragment from a form in an overlay

I'm trying to redirect from a form submit function (form is in an overlay) using either drupal_goto('url',array('fragment'=>'foo')) or $form['redirect'] = array('url',array('fragment'=>'foo'))...
1
vote
0answers
40 views

Overlay inconsistency with tabs

I just enabled and configureda workflow module. The edit, outline and revisions tabs display in an overlay state whereas the workflow goes out of the overlay and to the site, if that makes sense. Why ...
1
vote
0answers
460 views

Admin overlay forms not working after core update

I just updated my site from 7.0 to 7.18, the forms in admin overlays no longer work, this concerns any pages related to admin: www.mysite/admin/* The forms always reset back to their previous values....
0
votes
0answers
15 views

Dialog form submit button fails to trigger submitForm()

I load this form into a dialog using: $content = \Drupal::formBuilder()->getForm('Drupal\web_core\Form\MyForm'); $response = new AjaxResponse(); $response->addCommand(new OpenDialogCommand($...
0
votes
0answers
58 views

Passing data-dialog-options and data-dialog-type dynamically to an <a> tag not opening modal

I'm trying to create a dynamic way to open a modal window in drupal. The current structure work like this. <a class="use-ajax" href="/node/810">Testing 1 </a> For that ...
0
votes
0answers
33 views

OpenModalDialogCommand without site configuration permission

I have a custom module in Drupal 8.9.9 to open a form in a modal dialog with OpenModalDialogCommand. The custom_modal.routing.yml file has: custom_modal.open_modal_form: path: '/modal_form/{title}/{...
0
votes
1answer
52 views

AJAX Modal Form

I created a modal form with Ajax: <?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the ...
0
votes
0answers
39 views

Replace the default modal with a different one

I want to replace Drupal 8 default modal with MDB. How I can do it? Should I unload default library for modals and load new one? Any idea?
0
votes
1answer
40 views

Popups & colorbox issues in Chrome

Hoping for some guidance here. Sometime in the past few weeks, my inline modal popups stopped working in Chrome. I had Colorbox set up at the time, both hand coded inline links and views colorbox ...
0
votes
0answers
23 views

Adding Custom block types to layout builder side menu

I've created a custom bock type but what to either show it under Add GT Blocks or Start my own menu on the layout builder modal. I've placed this in a module so I would like to add it there. Otherwise ...
0
votes
0answers
493 views

Programmatically get the current url of the page from where a Webform in a dialog has been loaded

The below link will open the webform (contact) in a dialog: <a href="/form/contact" class="btn btn-success webform-dialog webform-dialog-normal">Contact</a> this same link has been ...
0
votes
1answer
131 views

Creating ajax modal from event

Here's the deal. I want to create a modal popup when an add to cart event is triggered. I've got the event working just fine but can't seem to get the ajax to work properly. What I'm working off of ...
0
votes
1answer
299 views

How do I set the Layout builder modal to use the administrative theme?

I'm building a custom Drupal theme and wondering if there is a way to get the modal windows to use the default admin theme. I'm using the Layout builder module with a custom block that uses the Media ...
0
votes
0answers
40 views

SweetAlert doesn't display content markup

The SweetAlert modal is not displaying the content as passed in the option array when returning a response from the controller. Please see the code config below: //$options = ...
0
votes
0answers
427 views

How to open video from a video link in an overlay on the same page?

How to open a video from a video link in an overlay on the same page? For example, If you go to google news you would have seen the video attached on the link, open as an OVERLAY, and play on the same ...
0
votes
1answer
231 views

Right side overlay panel Solution

quickie, I want to create a right-hand side sliding overlay panel for my drupal site. I have been googling and testing solutions for hours. The exact effect that I want can be found here. The ...
0
votes
1answer
585 views

How to display an overlay image in modal window (Colorbox) upon hover

I have a series of images set up to display in modal lightbox-type windows – specifically, using the Colorbox module. The goal is for each image to be paired with a companion graphic overlay which is ...
0
votes
1answer
534 views

Is it possible to show only node contents in shadowbox pages?

I'm looking for a method to display content (nodes) in a shadowbox overlay without any blocks or menus around it. even if the user is logged in. Has someone an Idea how to do this are there even ...
0
votes
0answers
48 views

Add CSS file on delete specific node

How can I add a css file to the specific page where you delete a node of type = ... . I know you can add css files to specific pages like this: function hook_preprocess_page(&$vars) { $path = ...
0
votes
0answers
63 views

Alter create content form when logged in as admin

Can I alter the form where you add content (logged in as administrator, so in the overlay)? I know how I can alter the form when logged in as a user like this: function ...
0
votes
1answer
568 views

How to trigger a popup window/overlay in my module?

I am stuck in my project. I am working on a module for account management page. When the user update their billing address, a service call will be triggered to send request to a third party API to get ...
0
votes
0answers
651 views

Youtube Video still playing in background after attempt to close it by clicking on the overlay area (Colorbox module used)

I created a Youtube video gallery using video embedded field module (to put my Youtube url) and colorbox module to create a nice overlay pop up. I have created the gallery grid with the Views module. ...
0
votes
0answers
653 views

Overlay problem

When I want to open a content via main menu (e.g. I am in the content "Gallery" and I click on "Article" in the main menu), Drupal first starts to load the article content with overlay on http://www....
0
votes
1answer
109 views

confirn in link on overlay lists

I create in administration list of some content and create link delete. On link delete I add attribute onclick="return confirm('Are you sure?);" but when you click "cancel" on confirm block drupal ...
0
votes
1answer
69 views

problem in admin_path module with my custom content type paths

I have created a content type "Test". The content which I created of type "Test" have the paths like this "test/content1, test/content2 etc. means test/*". So I entered the path "test/*" in the ...
-1
votes
1answer
249 views

JavaScript for Drupal Edit Overlay

I have written some JavaScript that I want to only run on the Edit page. We are using Drupal 7.8 and in our setup the edit page opens as an overlay. How do I get this javascript to run when the edit ...
-1
votes
1answer
393 views

Running JQuery code in Admin Overlay

I have an overlay module installed which allows my admin to open in an Overlay (Jquery Pop Up) I want to run a specific JQuery code whenever admin page opens in an overlay. How can I do that?