Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [add-on-development]

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

0
votes
1answer
20 views

Issue with custom fieldtype using shared form field

I am working on a custom fieldtype which essentially displays a select dropdown with some custom options. To keep in line with EE's styles I'm trying to use their shared form field to get it to ...
0
votes
1answer
15 views

Uploading images in CP using ee:_shared/form via custom addon

I created a module for EE2 a few years back and I'm in the process of making this compatible with EE3/4. I'd ideally like to make use of the ee:_shared/form (Shared Form View) and I'm 90% there but ...
0
votes
1answer
33 views

Create an entry from an extension?

Is it possible to use the model service to create a new entry? I have been using the model service recently to update and delete channel entries, but can't figure out how to create. $update_query = ...
0
votes
1answer
27 views

Model service filtering by date

I have recently started using the model service to query channel entries. $query = ee('Model')->get('ChannelEntry') ->filter(...); I have been using EE's documentation to ...
0
votes
1answer
25 views

Store shipping plugin …

Does anybody have a sample shipping plugin for Store 2? The only one I have is for 1.5 and the documentation isn't very helpful. Thanks in advance, Cole
0
votes
0answers
23 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 ...
0
votes
0answers
54 views

How to add CURRENT_TIMESTAMP with dbforge as a default 'datetime'

I need to use 'DEFAULT_TIMESTAMP' as a default value in a table I'm creating in a module, but I keep getting a notice and exception. Notice: Use of undefined constant CURRENT_TIMESTAMP Exception: ...
0
votes
1answer
33 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
1answer
22 views

Custom Fieldtype: How to check save($data)

Developing a custom fieldtype and having trouble getting the entry data to save to the exp_channel_data table. I know that the data passed must be a string and I am trying to catch the data at the ...
0
votes
1answer
42 views

Clearing the cache via API

The Expression Engine documentation for caching explains that the caches are automatically cleared upon: Submission, updating or deleting of an Entry through API I need to clear the caches via my ...
1
vote
1answer
34 views

Custom add-on accessing method from another custom add-on …

I've got a custom add-on/extension that extends the Store module by tapping into the store_order_complete_end hook to save details of an order to an XML file stored on the server. I want to access ...
0
votes
1answer
41 views

How to remove -EE warning about a deprecated function from the NCE LDAP plugin

The system has detected an add-on that is using outdated code that may stop working or cause issues with the system. What does this means and how can I solve the issue? Deprecated function hash() ...
0
votes
0answers
19 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
1answer
23 views

Expresso Store custom tax rule

I've worked on a few custom plugins/add-ons before but am a bit rusty on extensions. I need to write a custom tax rule for Store and looking for guidance on targeting one of the Store extension hooks, ...
0
votes
0answers
79 views

Disable Transcribe on ee Search Simple Form

In a channel called "intranet" I do not want to use the Transcribe Add-on. Inside the control panel I change the channel layout, hiding the transcribe tab. In the front-end I'm able to display all "...
3
votes
1answer
127 views

Converting addon to EE3

Wonder is anyone can help me convert this EE2 addon to EE3 <?php $plugin_info = array( 'pi_name' => 'String', 'pi_version' =>...
5
votes
1answer
60 views

Updating ExpressionEngine 2.6 add-on variable PHP code for 2.11.6 compatibility

I'm having a little trouble updating a new client's pre-existing website from EE2.6 to 2.11.6. A now defunct add-on needs a few updates to work correctly with post 2.6 code formatting. After some ...
0
votes
1answer
33 views

Plugin Development - Is it possible to extend the 'Grid' fieldtype?

I'm building a fieldtype plugin that is essentially planned to be an extension of the 'Grid' fieldtype. I can see in the docs how you create a new fieldtype to be used inside of a 'Grid' but that's ...
0
votes
1answer
87 views

Custom add-on not appearing in Add-On Manager

I've created a barebones add-on directory structure, but ExpressionEngine will not list it. The only file that I've included, addon.setup.php, is defined as follows: return array( 'author' =>...
0
votes
1answer
64 views

Using the cp_custom_menu hook

I can't get the cp_custom_menu hook to run. Here's my code. The activate_extension() function runs and successfully adds the extension to the db but it never gets called. public function ...
1
vote
1answer
46 views

In ExpressionEngine 3, what is the format of the config file to be able to use the Config Service?

I'm developing an add on for Expression Engine 3, and I can't figure out what the format should be for the config file that will be used from the Config Service. The Expression Engine documentation ...
0
votes
2answers
36 views

Creating entry with channel entries api, redirecting to empty view page

I am on EE 2.11.2, and I am using the Channel Entries API to create a new channel entry after a user submits a form on the front-end. It saves the entry just fine, but when I redirect the user to the ...
0
votes
0answers
60 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
33 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
67 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('...
1
vote
2answers
101 views

Get the current entry_id from inside a module addon

I am working on an addon for EE3 and would like to be able to pull whatever the current {entry_id} is to use inside the mod file without requiring the user to have to add it as a param. Is this ...
0
votes
1answer
59 views

How do I make a fieldtype use the full column width in the control panel?

I've coded a new fieldtype for my EE3 install. It works, but it doesn't look quite right in the control panel - the input fields only use up half of the available space. This looks fine for many ...
0
votes
1answer
51 views

Error in entries per page counting plugin

I'm working on a quick plugin to output where you are in a paginated list of entries but am having problems doing mathematical calculations on plugin parameters when one of them is using {...
0
votes
1answer
130 views

Return Variables to a Template

I have created a module for Expression Engine 3, which includes two functions. search_form search_results search_form returns a form into my template. search_entries is actioned by search_form upon ...
0
votes
1answer
93 views

How to create an Addon

So I've been using EE for some years but I've never created an add-on before and I was hoping for some guidance on how to approach it and whether it should be an extension or a module. Requirements: ...
0
votes
1answer
422 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
45 views

Is there a way to get the member_id of a user that was just logged out?

I currently have the core file Session.php modified a little to keep track of login/logout information and member_ids - create_new_session() for login, destroy() for logout. I realize that this can ...
0
votes
1answer
26 views

Enable “search:” Parameter in Custom Add-On Channel Entries Method (EE2)

I'm extending the Channel module entries() method in my custom plugin and am trying to figure out how to include the search: parameter. I get that the search parameters are an array accessed via ee()-&...
1
vote
1answer
318 views

Upgrading module from EE2 > EE3

Can I confirm that if a custom module does not have a control panel interface, conversion from EE2 > EE3 only requires the following changes: Create a addon.setup.php file
0
votes
1answer
24 views

Lang text with control panel interface

On a new project, the client requires that it be possible to add/modify all text. I will be using channel entries to hold majority of the 'content' text, but I am more perplexed by how I should allow ...
3
votes
2answers
92 views

For a list of events, get the first occurrence of each event, programmatically

In an add-on, I'd like to get a list of entries (events) ordered by the first upcoming occurrence of that event. For example: Event X: 2016-01-05 and 2016-01-08 (2 occurrences) Event Y: 2016-01-07, ...
0
votes
2answers
81 views

Custom AddOn, Using SimplePie to display an enclosure

I need to display an RSS feed on my site. I could use the built in RSS_Parser add-on, however that add-on does not appear to support adding an item enclosure (image). This is a requirement for this ...
0
votes
1answer
16 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
23 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
2answers
148 views

How to add a new database column in third party module?

I've created a module for ExpressionEngine and since it's initial installation I need to add a new column to the database. I've managed to create the update funtion in the upd.modulename.php file and ...
0
votes
1answer
34 views

Possible to spoof last page, or end early in multi-page form?

I have a form with a number of pages and radio buttons, each one has a score attached. If the score is lower than 5 by the 5th page I need to end the form and display the results, else carry on with ...
0
votes
1answer
47 views

How do I find/make the URL to a PHP page in my extension?

If I have a control panel page and I want to submit it to a PHP page in my extensions' directory, how do I do that? What would the URL be? Or would I instead make an ACT URL? If so, how do I do that ...
0
votes
1answer
52 views

What's the proper way to alter a form in the control panel? (Using an extension in EE3)

I have looked through the hooks and cannot figure out which hook could provide a way to alter a form in the control panel (e.g. the create/edit member form or publish/edit entry form). I don't want to ...
0
votes
1answer
63 views

Trigger the member self activation email from custom add-on with member registration

So i have written a custom module to do some stuff, but part of that stuff is to register a new member into EE. All of that is working great, but, it doesn't send the self activation email out (even ...
0
votes
2answers
244 views

How to access a custom table name that isn't prefixed with exp_

I'm developing an EE module that needs to access a non EE database table that isn't prefixed with 'exp_'. How would I go about doing this? In Codeigniter I can use set_dbprefix, but that doesn't ...
0
votes
1answer
27 views

Can the 3rd tagpart of a plugin be used freely, or does it HAVE To be the name of a method?

I'm trying to make a plugin that I need to be as simple as possible to use. If possible, I want the usage to be: {exp:pluginname:anytext} And the output to be: anytext Obviously there will be more ...
0
votes
1answer
27 views

expression engine extension development - make a field required

In a custom extension, can I make a settings field required to have a value without having a create a custom form using settings_form()?
1
vote
1answer
52 views

Render embed tags Shine pdf

I want to use the module Shine pdf to generate pdf's. Only problem is it doesn't render embed tags in the template. I would like to change the code in the module so it would render embed tags. This ...
0
votes
2answers
74 views

Hook to add a new column in control panel

For an extension I would like to add an extra column in the cp's entries overview. I have searched for a hook I could use for this, but could not find anything. I could use Zenbu, but that is a bit ...
0
votes
1answer
89 views

Add a new menu button in control panel on module installation

For the module I am developing I would like to add a new menu button in the control panel. I could do that manually, but I was wondering if there is a standard EE function to add a new menu button ...