Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [elementaction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
1k views

How to call Controller in Module?

I'm very new to craft and I'm having trouble finding an answer to my question (I've scoured the questions on here - but the only answers appear to be for plugins). Basically, I want to submit a form ...
0
votes
1answer
104 views

How should I fix an odd action URL? [closed]

I have a controller which is eventually going to be set up for POSTs and GETs, but the weird thing is I can only access it through localhost/index.php?p=actions/twoFA/get where twoFA is my plugin ...
1
vote
0answers
42 views

Redirect from element action

I'm trying to process multiple elements in a custom element action, and then redirect the CP user to a url. How would I do that?
1
vote
1answer
473 views

Plugin's action URL not working and showing 404 error

I created a plugin to schedule some custom email notifications. The action URL is working perfectly on localhost but isn't working on stagings server. Is it related to any server stuff.
5
votes
1answer
472 views

Get the type of action and the elements(s) that an action is being performed on when listening to elements.onPerformAction?

I have a plugin that needs to do something when an entry is deleted. I've recently discovered that the entries.deleteEntry event is not fired when deleting bulk entries (the list view with checkboxes) ...
3
votes
1answer
272 views

Listen for checkbox check event for assets table and modify action trigger menu item

I am able to listen to an event when the user checks the checkbox in the assets table. This is within my js file init file that extends garnish: Garnish.Base.extend When the checkbox is selected, I ...
0
votes
2answers
397 views

Trouble loading custom element action (menu option)

How do you load a custom element action using getAvailableActions inside my Element Type class? public function getAvailableActions($source = null) { $customAction = craft()->elements->...
3
votes
1answer
257 views

Relating entries to assets within an ElementAction

I'm following the Element Actions example from the official Craft docs. I've defined an Artist entry type, and have defined an entries field on my Assets to relate an Artist to each Asset. To avoid ...
1
vote
1answer
283 views

How to set error message in element action?

I call a service function inside the performAction method of custom element-action and I'd like to show an error message to user if the service function returned false. I was able to set success ...