For questions specific to the creation/development of ExpressionEngine addons which include Modules, Extensions and Plugins.
0
votes
1answer
18 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
20 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
18 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
0answers
10 views
Using Channel Entries API to create or update entry with Assets in a Grid field
I am trying to use the Channel Entries API to save an image file to an Assets field that is within a Grid. I cannot find any documentation showing how to do this. Can someone provide (or point me to) ...
0
votes
2answers
16 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
47 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
0answers
5 views
How do I call a fieldtype controller method via URI?
I'm working on an add-on for EE3.
The EE docs outline a method for calling a function in an add-on via URI. In the docs, the function they call is in an mcp file. I'm developing a fieldtype, not a ...
0
votes
0answers
21 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
47 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
2answers
62 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
24 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
0answers
12 views
Unable to output session data
I am unable to output session data in my stripped down custom module.
In my first template, I have the following:
{exp:cdwd_members:search_form}
Form...
{/exp:cdwd_members:search_form}
This ...
0
votes
1answer
48 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
39 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
0answers
20 views
Using FilePicker Service with Shared Form View
I'm working on an add-on and I want the user to be able to upload an image in the add-on settings (mcp file).
I would like to make use of the FilePicker service for this as then I don't have to worry ...
0
votes
1answer
27 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
70 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
0answers
14 views
How do I create a new menu item
When I create a new page in Expression Engine I do not know how to link it to a new menu item. Could you please offer advice on how this can be achieved?
0
votes
1answer
21 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
0answers
29 views
EE3 Hooks - Equivalent to 'publish_form_channel_preferences' or 'publish_form_entry_data'
We're working on porting BWF over to EE3 and are looking for the best match for all the hooks we use - there's a lot of them.
Most seems to have an EE3 equivalent but we can't find anything which ...
0
votes
1answer
21 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
155 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
18 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
70 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
33 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
11 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
20 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
29 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
23 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
33 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
32 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
35 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
88 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
22 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
20 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()?
0
votes
1answer
38 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
68 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
64 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 ...
0
votes
1answer
20 views
Update field content with extension when saving or editing an entry
I have created an extension which uses the entry_submission_ready hook.
It is doing some calculations which I want to add to a field in the entry.
How can I add the output of the calculations to the ...
0
votes
1answer
14 views
List upload destinations in module
I'd like to show a list of available upload destinations on a form in a custom module, are there functions to help with this?
1
vote
1answer
21 views
how to make multi value variable in addon development
I am developing an addon for EE.
i could not find a way to make a variable with multi value behavior.
like:
i would like to write in the template:
{location:lat}
{location:lng}
this can be (Pair ...
0
votes
1answer
141 views
form validation for module mod file template tags
I am creating a dynamic form on the fly for use in EE templates. I create the tags using the mod.module_name.php file of my module.
I am trying to run validation on the form, every field is required ...
1
vote
1answer
33 views
module template tag looping thru values in module template tag
I am building a module and I am looping thru data to set a value for each key, to be used as EE template tags.
foreach($missing_fields as $field)
{
$count++;
$vars = array(
'field_id'...
0
votes
4answers
409 views
How to edit Expression Admin panel
I need to customize the Admin Control Panel in Expression Engine I don't know how to do it. If any one knows kindly tell me.
Updated
Actually I want to show the channel data(any entries) in ...
1
vote
1answer
48 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
1answer
148 views
redirect in add-on module redirecting me to admin control panel login form with # appended in URL
$this->EE->functions->redirect(BASE . AMP . 'C=addons_modules' . AMP . 'M=show_module_cp' . AMP . 'module=module_name_here' . '#tabsettings');
EE v2.9.2
I want to redirect the user after ...
1
vote
3answers
52 views
Channel Entries - addon to charge members per entry?
Does EE have an addon, either native or third party, that can charge members to post entries? Some entries will be a one time payment while others need to be recurring. I need the entry to expire at a ...
1
vote
1answer
21 views
is it possible to set and retrieve flashdata in sessions_start() hook
I'm attempting to set flashdata in the sessions_start() hook and retrieve it on the next page load. It does not seem to work although I am able to set_flashdata and then var_dump the session object ...
1
vote
1answer
35 views
Get IDs of deleted entries
I’m creating an ExpressionEngine extension. I want to get the IDs of any records that are deleted. I’m aware of the delete_entries_end() and delete_entries_loop() hooks, but they both return void ...
0
votes
1answer
28 views
Is it possible to use $lang variable in fatal_error output on front end?
In my custom module I want to display a series of error messages for X, Y & Z. I have a single tag in the mod.[module_name].php file and I want to throw out an error if no id has been provided.
...