Questions tagged [extension]

Extensions enable third party developers to modify aspects of ExpressionEngine without hacking the backend scripts.

Filter by
Sorted by
Tagged with
6
votes
2answers
564 views

How to add a custom JavaScript to the “New Entry” control panel?

How can I add a custom script to the "New Entry" control panel page to interact with the input form. The script does not need to be added to the "Edit Entry" page and certainly should not be added to ...
8
votes
2answers
1k views

How can I enable HttpOnly cookies in EE

Update: Thanks to Dom Stubbs, I have an extension to accomplish this now. It is up on devot-ee and also up on GitHub. Thanks Dom! The Original Question I am nearly through a security review of a ...
9
votes
1answer
181 views

Turn off extension in Control Panel

I would like to make sure an extension isn't run, via sessions_end hook, in the control panel. I'm currently doing this like so: if ($this->EE->input->get_post('D') == "cp") { return ...
5
votes
1answer
521 views

Multiple Hooks, One Extension

In the documentation the code to add enable extension hooks is like this $data = array( 'class' => __CLASS__, 'method' => 'truncate_this', 'hook' => '...
3
votes
2answers
378 views

Saving entry with grid field isn’t working

I’m creating an ExpressingEngine extension that upon activation, automatically creates a channel with fields. One of the fields the extension creates is a grid field. I create the field like this: $...
3
votes
1answer
100 views

Modules vs Extensions

I am very new to ExpressionEngine and don't quite fully understand all the concepts yet as I come from a solid OOP environment. When would you use functions in modules and when would you use functions ...
2
votes
1answer
4k views

displaying a flash message after redirect

I'm programming an EE extension, and in the save_settings() method, if I redirect() (after unsuccessful data validation), the message stored in the set_flashdata() method doesn't show. If I comment ...
0
votes
2answers
125 views

Structure of an Extension

I am trying to learn how exactly hooks and extensions are used. I am using expresso-store and have a function I need to call when the order is complete and gets to the success page (on hook '...