Questions tagged [add-on-development]

For questions specific to the creation/development of ExpressionEngine addons which include Modules, Extensions and Plugins.

30 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
39 views

CartThrob price field modifier to minus some amount from cart total

I am having issue in developing cartThrob tax plugin with fieldtype Tax plugin have this fields. I have created a field type that will call that tax settings and populates here. When I view in ...
1
vote
1answer
56 views

Syntax for checkboxes in extension

I’m creating a custom ExpressionEngine extension and I need to add a checkbox. I’m struggling to find the options I need to use for the channel fields API. Currently I have: array( 'field_name' =...
1
vote
0answers
24 views

Show small icon in Assets if image is being used in system or not?

Looking for a way to show, with a little icon or other indicator, if a file in the Assets module is used in the system or not, as this would be a great help to editors. This would help while ...
1
vote
1answer
93 views

Plugin Development - using template params in a function

I'm querying an external timetable database, and I need to get the start and end points of the journey to use in a hidden field. My template code looks like this: {exp:get_piers:departure_pier ...
1
vote
1answer
146 views

Parse custom field data in entry_submission_end_hook

What I'm trying to do is parse the custom field data sent to the entry_submission_end hook. Here's what I was able to dissect out of the channel entries module, but what I'm confused is how to ...
1
vote
0answers
101 views

ACT ID gives 403 from Paypal IPN

I created a function in ee module to handle Paypal IPN as follows: function ipn_paypal(){ include_once("libraries/Paypal_lib.php"); $objPaypal = new Paypal_Lib(); $objPaypal->...
1
vote
0answers
79 views

When building a fieldtype add-on, are you able to extend Grid?

I wish to create my own fieldtype add-on (a fieldtype where users are able to create advanced, responsive layouts using simple tools in the backend). I currently do this without an add-on using Grid, ...
1
vote
0answers
161 views

Problem parsing deep arrays with parse_variables()

I have a problem with the parse_variables() method once my data contains an array at a certain depth: foreach ($cvs->result_array() as $id => $row) { $variables[] = array( 'id' => ...
1
vote
0answers
33 views

Get the current entry/template fieldtypes in a plug-in

I'm working on my first, more complex add-on and had a question on gathering field properties. If I create a tag pair, which wraps a field inside a template, what would it take to get the tag ...
1
vote
0answers
2k views

How to load CodeIgniter language file into ExpressionEngine add-on?

in a custom add-on I am writing I am using Upload library. I cannot use $this->EE->load->library function because I'm rewriting some code, so I'm creating instance using this code: if ( ! ...
1
vote
0answers
38 views

Validation in the save_settings method of a custom fieldtype?

How does one go about including validation code associated to the save_settings() method in a custom fieldtype? Basically I want to check the posted values of the fieldtype's settings before saving ...
1
vote
0answers
57 views

Trigger save on WysiHat editor on publish page?

I'm writing an EE module where I need access to the text of the EE rich text field (a modified version of the WysiHat editor). When the field is edited, I need to trigger the logic to save the value ...
0
votes
1answer
42 views

Convert old (EE2) addon to EE6

wondering if anyone can help me convert this to EE6. Thanks <?php /** * @package ExpressionEngine * @author Wouter Vervloet * @copyright Copyright (c) 2010, Baseworks * @license http://...
0
votes
0answers
24 views

Addon development - make visible to Member permissions?

Using EE 3.5.1. I have made a simple extension to allow a logged in user manage a single settings() text field. However, I cannot grant access to this add-on to other Member Groups because it does not ...
0
votes
0answers
32 views

Get custom field entry data on before_channel_entry_delete hook

I'm using the hook before_channel_entry_delete to get custom fields of the deleted entry and use that in another context. But, when I add the hook method and try to get data, all the the custom field ...
0
votes
1answer
22 views

AJAX In Cart Page Returning Odd HTML Instead Of Data Object

EE 5.2.6 This is a very strange problem. I have a class that I'm using to query the Amazon Product Advertising API and return data via AJAX. I have category pages and product pages where the jQuery ...
0
votes
2answers
33 views

Checking if a plugin is installed

new user to ExpressionEngine here. I recently developed a plugin that I'm using to apply a filter to content, but I run into an issue when the plugin isn't installed. Is there a way to check if a ...
0
votes
1answer
158 views

EE4 Module Tab on Template Editor Page

Is there a way to add a tab on the publish form within the Template Manager like it is with the Channels? For example, the Template Manager has the default Edit, Notes, Settings and Access form tabs. ...
0
votes
0answers
21 views

View file cannot be found when creating new class

Edit I have two separate add-ons in play here with EE 3.5.3 addons/project/ext.project.php addons/project_mailer/mod.project_mailer.php addons/project_mailer/views/mail_template.php I've got an ...
0
votes
0answers
66 views

Channel Entry Hooks not POST-ing fields

EE 3.4.2 Working on an EE3 Extension. I am able to utilize the channel_form_entry_form_tagdata_start to inject the custom field I need to for my Extension. This is a simple field (text) that is ...
0
votes
1answer
34 views

How can I call a method from my add-on via a JS file?

I'm working on updating a fieldtype add-on to work with EE3. This add-on calls one of its own functions from a javascript file to make some DB updates without reloading the page. In EE2, the ...
0
votes
1answer
111 views

Using hooks in EE3 calling methods in extensions from modules

I'm new to hooks, so pardon any ignorance in the questions... So in my extension, (ext.staree.php), I have the following specifying the hook: class Staree_ext { public $hooks = array('...
0
votes
1answer
775 views

Codeigniter style validation callback function not working

I've created an EE custom addon that processes a simple enquiry form. All works well but I'm trying to add a callback function to my validation rules and it appears to be completely ignored. Here's ...
0
votes
1answer
28 views

Date Input Field in CP View

Is it possible to have a date input field in a control panel view page? Is there any kind of build in javascript library for the date calendar etc? Thank you.
0
votes
0answers
26 views

Module Settings Column

I am creating a competition website. For the competition I am creating a custom module. The module has a cp backend where I want to be able to add some details about the competition. For example, ...
0
votes
1answer
783 views

Send email from EE template with file get contents

I’m creating a custom ext. that handles form submission + email sending. When a form or reservation has been made the data is put in EE and 2 emails are being send. One email to the client and one to ...
0
votes
0answers
56 views

Is it safe to initiate a temporary session in plugin for use with the Channel Entries API?

I have a plugin that will accept posted form data from a member group and then create or update a channel entry which that member group is not given permission to post or update in (via the control ...
0
votes
0answers
24 views

edit_entries_additional_celldata

I'm looking for a way to display entries in the control panel in the order of being last updated. I saw that EE1 has the hook edit_entries_additional_celldata but it's not present in EE2. Is there any ...
0
votes
0answers
145 views

Update channel entry

I'm new to EE. Actually I have some problem updating a entry. This is my code: ee()->load->library('api'); $data_item = array( 'stock' => '4' ); ee()->api->instantiate('...
0
votes
0answers
44 views

How do I get the resized version of an image in a fieldtype plugin?

I have a custom fieldtype on my site which allows you to upload an image and draw on it. However, while the site uses a resized version of the image, the fieldtype displays the full-sized version when ...