For questions specific to the creation/development of ExpressionEngine addons which include Modules, Extensions and Plugins.
1
vote
0answers
20 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 ...
0
votes
2answers
23 views
Determine template from extension
Is there a good way to determine which page template was loaded for a given URI? I'd like to be able to use this information from an add-on.
For example, if my root template group is home and the ...
2
votes
1answer
16 views
Abort the channel entry publish process?
I am working on an extension that takes some entry data (from the control panel) and performs some tasks with it, just prior to insert/update. I am currently using the "entry_submission_end" hook to ...
0
votes
1answer
18 views
Using the RTE within my own custom field type
As a learning process, I am developing a field type that will allow me to insert data from multiple text inputs and text area fields (similar to an address field with text fields for address, state, ...
0
votes
1answer
46 views
Assets not showing files in backend
I'm building a custom fieldtype that uses Assets. So far, I've implemented Assets.Sheet, as described here: http://docs.pixelandtonic.com/assets/developers/sheet.html.
But when the Sheet slides into ...
0
votes
0answers
14 views
Form validation callback + mod file
I am trying to use a form validation callback function on a mod file that I am working on in EE. The callback feature seems to work ok on the backend but on the front end of the site I am working on, ...
0
votes
0answers
38 views
Help in write a script to Pre-fill matrix field when creating new entry
Based on the answer
Pre-fill matrix field when creating new entry?
Some body can help me in writing a script that does this task.
I've thi particular case. I've to fill the matrix field like the ...
0
votes
3answers
26 views
Using a module tag as parameter adds +1 query per loop
I'm finding that if I use a module tag like stash or playa as a parameter in a plugin tag, that an extra query for the module name is run for each loop. Here's the query that's run:
SELECT ...
1
vote
1answer
49 views
get_upload_preferences() is deprecated - any idea how to fix this?
I've got a custom fieldtype I need to upgrade for EE 2.5.5 - It uses the Tools model, which was deprecated in EE 2.2. Here's the code that's coughing up errors in the developer log:
$upload_prefs ...
0
votes
0answers
29 views
need to create v1.7.x plugin for pulling data from an oci8 database into template
I've used oci8 databases in CodeIgniter applications in the past, but before I have never connected to a database in EE plugins I have written in the past.
I imagine I could use the database class to ...
1
vote
1answer
20 views
Safecracker: get constants in javascript
I'm working on a fieldtype with a lot of javascript and I use the following to get EE constants in the js:
$this->EE->javascript->set_global(array('THIRD_PARTY_THEME_URL' => ...
2
votes
0answers
29 views
Creating an instance of Expression Engine 2 plugin class from template
I have created an EE2 plugin under third_party folder and it succesfully shows up in Plugins list @ backend.
Now, is it possible to create an instance of that plugin class directly from a template as ...
2
votes
3answers
33 views
Send Email from custom Addon
I'm trying to send and email from a custom add-on using the Email Class and having no luck at all. I'm not totally sure how to debug this, as I've not got any server errors or anything like that.
...
1
vote
2answers
36 views
Selecting Channel data within a custom Addon
I'm going to be inserting some data into a channel via a custom Add-on. It looks as thought I should be using the Channel Entries API in order to do this, which is fine.
What I need to do first ...
2
votes
1answer
21 views
Control Panel/MCP: Table class in older versions of EE2
Have there been any changes to the table class in EE2? I have a bug report on an add-on from a user with EE v2.3.1. They've received the following error in my mcp. file:
<b>Fatal ...
3
votes
2answers
46 views
Plugin development: How do you support date formatting in parse_variables?
I'm trying to support date formatting of a tag's output, per the Plugin Development & Template Class documentation. I have this code on the backend, with some redundancy on the timestamp value to ...
2
votes
2answers
51 views
Trigger set_flashdata when method called via ajax
Is there any way to use $this->EE->session->set_flashdata(); when calling a method via ajax without having to do a page reload to get the message to appear as it normally would under a ...
2
votes
2answers
29 views
How to update field-type table when a channel gets deleted?
I am trying to build a Expression engine field-type(add-on),where I will be storing the field-type data in a separate table(Ex:field_type_data).I am able to update the records of the table ...
3
votes
1answer
44 views
Pagination links on CP module's view are not clickable
I have a problem quite similar to the one found
here, where I am trying to form a table using the tutorial found on Ellis Lab's site. I found some of their guide totally lacking on pagination, and as ...
2
votes
2answers
50 views
Integrating recurring payments and Store
Here I am with another Expresso Store question.
My client just decided to sell memberships along other items (books), and this kind of item requires a recurring payment.
I know that Store doesn't ...
1
vote
2answers
57 views
Plugin Development Beginner Question
I'm new to add-on development and have built a simple plugin to return an integer of the number of entries a user has posted in a certain channel.
I want to call this plugin a few times in an EE ...
3
votes
1answer
45 views
How to force installation of extension during module install
When installing a module how do you require it's extension to be installed at the same time and vice versa?
I did a google search and looked over the docs as well and didn't find anything. That ...
2
votes
1answer
39 views
Pagination links on CP Module screen are not clickable
I'm working on a module that's outputting data using $this->EE->load->library('table').
I'm passing this back to my index() function to render things:
return array(
'rows' => $rows,
...
1
vote
2answers
57 views
What is the best way to start using hooks?
I've used EE for a while now but I'm new to creating extensions or modules. I want to add a functionality where a bunch of email addresses stored in a database get notified when an entry is submitted ...
3
votes
5answers
76 views
Building an add-on that accepts data from a custom front-end URL
My goal is to have a REST endpoint that I can push AJAX requests to, have those requests be parsed, potentially push some data into the DB via a channel, and then return a JSON status message. I don't ...
2
votes
2answers
52 views
Executing multiple SQL statements with Database class
Using $this->EE->db->query(); is it possible to execute a query as complicated as this:
CREATE TEMPORARY TABLE exp_temp_table (...);
INSERT INTO exp_temp_table () SELECT ...;
UPDATE ...
2
votes
3answers
52 views
How to personalize CP Content -> Edit view?
I want to personalize CP Content->Edit view with custom data from each entry.
For example i want to show the value of a fieldtype.
How to procede?
I think that there isn't any hook.
The only way ...
1
vote
1answer
32 views
NTLM authentication with EE
My project needs NTLM authentication. This is not core function as i found here: Can ExpressionEngine….?
Are there any existing add-ons which provide this? If not, where would be an appropriate place ...
4
votes
2answers
58 views
Replace a variable within a plugin tag pair?
So if I have a plugin, with a tag like this:
{exp:reggy mask="yes"}
{head-type}
{/exp:reggy}
And I want to replace {head-type} with "horse mask" in the plugin code, how do I do that? EE docs ...
1
vote
2answers
54 views
Proper way to output AJAX response in module?
What's the proper way to return an AJAX response within an ExpressionEngine module?
Good ole' echo "foo"; die(); seems to work but there must be a better way!
I tried the CodeIgniter approach ...
3
votes
1answer
38 views
Sorting a table in the front-end
I'm using the Table class to render a table in my module and I want the user to be able to sort by clicking on column headers. I'm following the docs here, but when I use set_columns and set_data I ...
3
votes
2answers
63 views
Load ExpressionEngine model in Module
I am trying to pull a listing of custom channel fields in my module and am refactoring to use EE models.
I tried
$this->EE->load->model('field_model');
but that didn't set ...
3
votes
2answers
104 views
Global Variable Parsing in Add-On Module
Trying to figure out what appears to be a global variable parse issue in a module add-on template tag.
Here's a sample of the tag used in the template:
{exp:syn_fb_comments:show ...
1
vote
1answer
63 views
Importing CSV/JSON/XML + images
I have a CSV that I need to import in a Channel. The CSV contains an id column that is used as part of a naming convention for a series of images associated with each row. For example, say the id was ...
1
vote
1answer
27 views
set_flashdata with save_settings for extensions
After saving an extension's settings, EE by default redirects you to the Extensions landing page. I want to keep the user in the extension settings after saving but also use EE's flashdata.
The below ...
1
vote
2answers
23 views
Language file parse error
I have a language file in my foo add-on
<?php
$lang = array(
/* ----------------------------------------
/* Required for MODULES page
/* ----------------------------------------*/
...
2
votes
2answers
69 views
Upgrade method for fieldtypes (add-on development)
Has anyone written an upgrade for a fieldtype? I'm assuming so, but I've not actually ventured this direction, and there are zero docs in this arena.
Specifically in this case, upgrading a fieldtype ...
0
votes
0answers
19 views
Expresso Store promo codes (channel-specific) [closed]
Using Exp:resso's Store addon, I need to fix things so promo codes are channel-specific. It's not currently supported by the addon, so will probably need me to build a plugin. Can anyone give me any ...
2
votes
2answers
38 views
Is it safe to get all tag params in one go with $this->EE->TMPL->tagparams?
Apologies if this is very obvious for experienced addon devs, but I'm experimenting with writing more bespoke plugins rather than gluing together other people's...
I know the official way to fetch ...
4
votes
1answer
27 views
How to find out what class/function has invoked extension hook?
I have an extension that relies on certain extension hook.
The hook can be invoked either by function from EE core or third-party module.
I need to be able to tell what function / class has invoked ...
1
vote
1answer
45 views
Adding another CI application?
I need to grab a CSV version of one of my channel entries and upload it to an FTP server. I also need to grab some images, which are part of the channel entries, and rename them, etc.
I have already ...
4
votes
3answers
70 views
Git subtree with add-ons that have a themes folder
I've taken to installing add-ons that I have in development in separate repositories as submodules into each of my EE projects. This has worked fine for add-ons that do not have a themes folder, but I ...
2
votes
1answer
37 views
Creating AJAX endpoints for custom fieldtypes
I'm working on a custom fieldtype that requires some validation via AJAX, which means I need an endpoint to direct my $.get() requests to. I know that accessories support process_x methods but ...
3
votes
2answers
102 views
How to create a plugin which returns channel entry data
I've created a plugin that gets the entry_id's of the most popular selling items in the exp:resso store. I'd like to extend it by letting a user loop through each of those entries and output them on ...
0
votes
1answer
26 views
Location for saving a temporary file
Is there a designated location for saving temporary files for serving to the user?
I dynamically create a PDF file and need to save it somewhere for the user to download. Which directory should I use ...
1
vote
1answer
75 views
How to load javascript file in my module
I have a module that is dependant on a couple of Javascript files.
How can I load these Javascript files on the front end when my module is called?
They are quite large so I cannot simply use an ...
6
votes
1answer
35 views
Extension Development - Use existing settings column or create a new table?
I was pondering this today and trying to decide on the best route when it comes to storing data for an extension.
The data I am storing in an extension involves a many to many relationship with two ...
1
vote
0answers
13 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 ...
5
votes
1answer
24 views
Add-On Development: Control Panel Files
I am working on a site where the admin wants a set of tabular data. I created a module to display this data in the Control Panel, no problems there. My first concern was if there is a preferred method ...
1
vote
1answer
29 views
How do I obtain the entry_id in the Publish screen for use in javascript (EE1 and EE2)?
This Fieldtype will need to allow the "profile admin interface" created from the API to appear on the Entry Publish/Edit page. The only thing that I was told I'll need to add to the script (as a ...




