Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [modal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
76 views

Login Modal - How to handle incorrect password / credentials?

I'm developing a site in Craft 2, using a modal to display the login form. The modal can be seen by clicking the Login button at top right. I'm essentially using the form as outlined in the Craft 2 ...
1
vote
1answer
707 views

How to create a Modal with a scrollbar

I'm trying to create a Modal and have a question: my code is: <div id="my-modal" class="modal" > <div id="modal" class="body"> <header class="header"> <h2&...
1
vote
1answer
74 views

Limitation of adding a Category from the CP field modal within an entry

Is there a way to either add a parent selector to the category field modal, or remove/hide the "+ New Category" button when editing an entry? We are using a category group to contain Locations, which ...
6
votes
2answers
1k views

Javascript events when modal window is opened or closed

How can I detect when a modal window has been opened or closed? I am writing a plugin which wants to detect when a garnish elementeditor modal window has been opened or closed.
3
votes
0answers
115 views

How can my plugin use Craft's native dragdrop support

I am using a generic Garnish modal from Craft like so: $container = $('.upload-modal'); $modal = new Garnish.Modal($container, { autoShow: false }); I would like to have craft's native drag&...
1
vote
1answer
913 views

How to create modals

I just want to create a modal and play with it, but can't find a way to do so. I already checked other questions on the subject, but I still can't figure why my modal isn't showing correctly. Here is ...
1
vote
1answer
154 views

When using “createElementSelectorModal()” how do you respect selected locale?

When using createElementSelectorModal() in a plugin, how do you make your source list show items from the current locale selected in the CP? It only seems to show the items from default locale no ...
1
vote
0answers
64 views

Entries fieldtype

Is there scope for updating the Entries fieldtype so that only sections editable by the user are shown in the pop-up modal? Obviously don't want to go changing the core files, but some digging ...
1
vote
0answers
58 views

User Group specific asset paths

I've been doing some quite involved work on a site where we want to restrict user access to certain asset paths. Following the post at Assets Folder: Images don't show up I was directed to the ...
5
votes
1answer
209 views

Are there callbacks for elementSelect macro?

I am writing a custom field type that makes use of Craft's asset selector, and saw that there is an elementSelector macro (in includes/_forms). I want to be able to do some things onSelect, but I ...
0
votes
1answer
118 views

How to set selected elements when creating modal with “createElementSelectorModal()”?

I'm showing a modal using "createElementSelectorModal()" In some cases I need to pass ids of elements which should be selected right after the modal is created. Is it possible?
0
votes
1answer
209 views

Assets Content/Fields not available until entry is saved?

I've got Asset location setup with a Photo Caption field. And a Photo Gallery field which references said Asset. When creating a new entry, I'm uploading images to the Photo Gallery field. When the ...
2
votes
1answer
386 views

How can I use the password confirmation modal on other forms?

While logged into the Control Panel, you can edit your account information. When you try to change your email address or password, Craft asks you to enter your current password (for security reasons). ...
3
votes
1answer
108 views

Recommended way to provide user feedback in the control panel?

Is there a recommended way to provide user feedback in the control panel — something like a modal window with a simple 'ok' button to dismiss? I am writing a plugin that syncs data between users, ...
2
votes
1answer
405 views

Possible to override Garnish.Modal? [Plugin]

Is there a way to override Garnish.Modal? For example, I have a custom modal which uses a custom form but I want to be able to use the built in forms.elementSelect to select from a user list. When I ...
2
votes
1answer
289 views

Image transforms and modal gallery

I'm using a gallery where when an image is clicked it opens a larger version in a modal. <li><a href="{{ varGalleryImages.getUrl('galleryLarge') }}"><img src="{{ varGalleryImages....
23
votes
1answer
1k views

How can my plugin generate a generic modal window in the Control Panel?

I'm working on a plugin, and it requires a modal to be displayed when the user interacts with a field of my Field Type. When the user finishes interacting with the modal, they would click "Done". ...