Questions tagged [modal-dialogs]

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

Filter by
Sorted by
Tagged with
18
votes
7answers
22k views

How do I show content in an overlay?

I want to display some content, returned from an AJAX call in an overlay or popup. Do you have any idea on how I can do it?
7
votes
3answers
10k views

displaying a webform in an overlay

I want the user defined webform to be popped up in an overlay when a button is clicked. I am using colorbox and colorbox-node modules. I am able to display the whole node. But I am not understanding ...
6
votes
3answers
8k views

Show node in overlay using drupal 7 overlay module

Is there anyway to open a overlay with a node content using drupal overlay core module? If I could reuse at least the javascript code I'd already be happy =)
6
votes
2answers
881 views

How can I listen for drupalOverlayBeforeClose in custom jQuery?

I am monitoring a particular form for changes and want to warn the user before they attempt to navigate away from the form without submitting it. I've successfully gotten this working in all instances ...
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 ...
5
votes
5answers
7k views

How to manually use Drupal 7's admin Overlay?

I am thinking of using Drupal's built-in admin overlay jQuery script to overlay my own contents. Is it possible?
5
votes
2answers
13k views

How to display a node in overlay popup effect?

I have a content type 'students' with fields name, description and a photo. I have created a view(Block) to display only the images of the students. When the teacher/user clicks the photo of the ...
5
votes
2answers
4k views

Drupal 7 user register form in overlay on page load

One of my requirements is to show the user registration form in an overlay kind of interface. From the Examples module issue queue, comment #14 http://drupal.org/node/930058 I found a module, ...
5
votes
1answer
143 views

How do I create a administration page (with overlay) through the UI

I would like to add an administration page (with overlay) to my site (not programatically). I assume the basic process is: Create a 'basic page' Set the path to /admin Set permissions <-- How do I ...
4
votes
3answers
3k views

Disable the Drupal 7 overlay for some administrative links

Is there a way to disable the Drupal 7 overlay for some administrative links by not others? For usability reasons the site I'm working on would benefit from some administrative links using the ...
4
votes
3answers
3k views

Can the overlay be used as a popup?

In Drupal 6 there was the Modal Frame API which made it to Drupal 7 core. However, I'm not sure how leverage the Overlay independent of being an administration screen. Is there any information about ...
3
votes
1answer
135 views

Is there any way to cancel Panels' overlay edit windows?

I don't want to edit Panel panes via overlay edit-windows and therefore I tried to disable the core "Overlay" module at admin/modules but it seems to effect everything except the overlay of the Panels ...
3
votes
1answer
909 views

How do I theme the core modal with twig?

Drupal 8 comes with built in modals. This works: <a href="/node/11" class="use-ajax" data-dialog-type ="modal">modal</a> How can I style that modal using twig, to add new classes to the ...
3
votes
3answers
847 views

hide module when path is overlay

Im developing a module which shows a bar (fixed, top, z-index 99999) with some content. When im in the admin interface with overlay, I want to hide the module, right now the bar is overlapping the ...
3
votes
1answer
707 views

Display a view in an overlay?

I want to create a view of display type page with a path of '/%/bookmarks'. Whenever this view is linked on a page clicking on the link will open the view in an overlay instead of a new page. How can ...
3
votes
3answers
2k views

How to redirect user after form submit in overlay mode?

The following code redirects user to node/add/article but doesn't use overlay. $form_state['redirect'] = 'node/add/article' How do I open node/add/article in overlay mode?
3
votes
1answer
918 views

Add CCK form with overlay or colorbox

I have a CCK form. When users submit the form, and add new content, I would like the form to be viewed in an overlay that allows the form to use all of the browser window's area in a similar manner as ...
3
votes
3answers
1k views

How close the admin overlay on submit for a drupal form shown within the admin overlay

I'm currently showing a drupal form via the admin overlay. I'm using jQuery to perform the processing of the form. The problem I have is how do I close the overlay on submit? right now the only way ...
2
votes
5answers
4k views

Overlay and jQuery don't work, what should I do?

I have installed Drupal 7 on a local computer on stack called Denwer (similar to WAMP) and Windows 7; I see that all pages load without Overlay module (it is on, on modules page). I guess that jQuery ...
2
votes
1answer
859 views

Why are variables & CSS loaded in the overlay?

This seems really weird to me and makes no sense. I'm using a custom theme, with Seven as the administration theme (inside the overlay). Why on earth are variables such as $base_url loaded in the ...
2
votes
1answer
149 views

Open ajax dialog with JavaScript

By adding use-ajax to a link we can open a modal using the Drupal ajax library as per the docs. E.g. <a class="use-ajax" data-dialog-options="{&quot;width&quot;:400}&...
2
votes
1answer
380 views

How to preserve a “target” attribute on links in overlays?

How can I preserve target attribute functionality in Drupal 7 overlays? They appear to always be overwritten with target="_parent". I have added a link to the help text of a field. I would like to ...
2
votes
1answer
313 views

Drupal 7: Looking for suggestions on AJAX-base update to view

I have a requirement that I'm not sure how to go about implementing. The flow goes something like this: User clicks button: share your update Popup window opens User fills in form and clicks Save ...
2
votes
2answers
159 views

Using attach_library in a modal

For ref, I'm working on https://www.drupal.org/project/focal_point/issues/3162218 I have a twig file that handles the contents of a modal window and I want to load a particular CSS file whenever this ...
2
votes
1answer
2k views

How to view blocks with Text Overlay on hover?

I'm working on a Drupal 7 site and I want to achieve similar thing (view blocks with Text Overlay on hover) shown here. http://ibakatv.com/ under the following blocks (sub sections): Basically I would ...
2
votes
2answers
587 views

how to display overlay width and height [closed]

hi i'm using overlay paths module with overlay module. i have 2 questions how to set an overlay width , i tried as mynode/*|200px but it doesn't works. is it possible to view a page in a overlay ...
2
votes
0answers
298 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
0answers
85 views

Open Drupal overlay using javascript [closed]

Is there any way to open the core overlay window with a Custom URL using JavaScript?
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
2answers
1k views

How to display IMCE file browser in overlay or popup window?

When users access the IMCE file browser from their user profile it gets integrated in the websites main content. I want it to be displayed in the administrative overlay or even as a popup. Does anyone ...
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 ...
2
votes
1answer
798 views

Overlay arguments

I'm using Organic Groups and I'm giving users a link to create content for the current group. I do this by giving the path node/add/grouptype?gids_node[]=1891. This works fine, as the group is set by ...
1
vote
2answers
10k views

Getting the error “$().once is not a function” [closed]

till today noon my site working fine but after that suddenly my site was struck and in error console it give me below error. Error: TypeError: $(...).once is not a function Source File: modules/...
1
vote
1answer
1k views

How do you create a link to a modal dialog?

The following code does not work: <div class="topics"><a class="use-ajax" data-dialog-type="modal" href="/topics-listing">All Topics</a></div> Drupal 8.6.5. Bootstrap ...
1
vote
1answer
2k views

Move primary tabs to the shortcuts bar

I am using drupal7 and the admin menu overlay (in seven). And I'm always apalled by the primary tabs appearing in view mode. They are messing up the layout for the editors / admins, and they're ...
1
vote
2answers
454 views

overlay submit feedback

This might be a very simple question, but I can't figure out the answer. I love the overlay module in drupal 7, but I am annoyed by the lack of visual feedback when a form is submitted in an overlay. ...
1
vote
1answer
327 views

Show node links in modal buttonpane

I want to show some node fields in buttonpane when I open node in modal. As far as I know, it will automatically show there inputs with type submit and links with class button, but I added class ...
1
vote
1answer
33 views

Form in modal dialog: Template suggestions have weird random suffix

My custom module has the following form route in mymodule.routing.yml: library_assets.add_asset_to_slideshow_modal: path: 'library/add-to-slideshow-modal/{library_asset_nid}' defaults: _form: ...
1
vote
1answer
231 views

How to get node title using this query on template?

Im building a custom filter in Drupal 8 based on some queries. I got this already, here im filtering by values on body: $query = db_select('node__body', 'n') ->fields('...
1
vote
1answer
375 views

How do I use Bootstrap theme's modal.jquery.ui.bridge's mapped events?

I am using a Bootstrap subtheme, and would like to trigger an event when a modal is closed. Reviewing the main theme's modal.jquery.ui.bridge.js file, I see that the bridge is intending to map jQuery ...
1
vote
1answer
2k views

Drupal overlay is not working for content links

I have installed my own custom theme in Drupal 7.29. Overlay is not working for my content links such as http://localhost/node/add#overlay-context=. http://localhost/node/add http://localhost/node/...
1
vote
2answers
612 views

how do I use overlays in d7?

Does Drupal 7 have built-in functionality for using jquery overlays? I would like to do some confirmation screens and form-wizard type stuff with them.
1
vote
2answers
1k views

URL encoding in admin overlays - breaks overlay

I have a fresh install of Drupal 7 with no content, and a few extra modules installed. Recently as I've navigated on the admin side, the URLs for the overlays have escaped HTML in them, like this: ...
1
vote
1answer
3k views

How do you use the Drupal 7 overlay on the node/edit screens for your popups when it's already being used?

I'm writing a module that adds a button to node/edit forms. This button needs to popup a DIV/IFRAME in a light box. I notice that Drupal 7 uses the new Overlay module for administrative and node/edit ...
1
vote
1answer
110 views

Custom form calls different form in modal, submit/ajax callback of second form not called

I created 2 forms: dms_gift_voucher/src/Form/GiftVoucherForm.php ... /** * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { .... $...
1
vote
1answer
146 views

Add event listener to modal close

In Drupal we can open a modal is two ways, either with HTML: <a class="use-ajax profile-page-link" data-dialog-type="modal" href="/node/1" data-dialog-options="{&...
1
vote
1answer
56 views

How do form #states interact with dialog action buttons, if at all?

A dialog can be fired by a link formatted as such: <a class="use-ajax" data-dialog-options="{&quot;width&quot;:400}" data-dialog-type="modal" href="/some/path"> Some ...