Questions tagged [add-on-development]
For questions specific to the creation/development of ExpressionEngine addons which include Modules, Extensions and Plugins.
235 questions
5
votes
1
answer
70
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
1
answer
65
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 ...
2
votes
2
answers
164
views
Twitter-style Tagging with Hashtags ? Devs? Anyone?
First, HUGE props to the people who've worked so hard to create this forum. EE desperately needs (and deserves) a community like this.
Wondering if any of you have experience with Twitter-style ...
2
votes
1
answer
505
views
Active Record: Show Tables
Is there a codeigniter active record way of doing something like:
if(mysql_num_rows(mysql_query("SHOW TABLES LIKE exp_mytable"))==1)
I'm not seeing Show Tables as a method in the docs.
4
votes
1
answer
378
views
Module I'm developing will not install
I am new to EE development and am trying to get my head round creating a module. I've read various tutorials and docs and have a skeleton module created, but it will not install.
In the list of ...
1
vote
2
answers
304
views
How/where do I place commonly used functions across multiple plugins?
I have 2 or 3 custom plugins that I'm using on a project. In each file I have a number of 'helper' functions (is this the correct terminology?) that perform a task that might be required in a few of ...
4
votes
1
answer
968
views
Disable table sorting for one column of a table created with EE's Table class?
I'm building a fieldtype add-on, and it presents the data contained therein via a table. I'm using EE's Table class to generate the thing, and it's mostly working fine - columns are sortable, etc. ...
4
votes
3
answers
255
views
theme_folder_url issue
Should be a quick one for the EE add-on devs out there.
Most add-ons do support having:
$config['path_third_themes'] = $base_path . "/assets/third_themes/";
$config['url_third_themes'] = $...
5
votes
2
answers
573
views
Module tag pair not working
I'm trying to create a module tag but it just isn't working, I'm following the Hello World tutorial at Ellis Lab. My module is installed and the MCP part is working. Here is my mod file:
<?php if (...
7
votes
3
answers
578
views
Am I able to store my own module settings in an EE table?
I am writing a new module for ExpressionEngine and have a couple of settings that I want to store from the Facebook API. For example, if I wanted to store the Facebook ID and Albums they want to pull ...
4
votes
1
answer
216
views
fetch_param when you only know a portion of the param name
I'm working on extending the external_entries plugin to support a SQL LIKE clause, using the "searchlike" param that was mentioned here:
As and example if I wanted to find all rows of an external ...
3
votes
1
answer
47
views
Problems overriding mod.member_settings.php email_prefs_form and update_un_pw_form
I have an extension and module that handles authentication for EE. I'm having some troubles understanding how to go about over-riding the handling in mod.member_settings.php. There is a hook for ...
2
votes
1
answer
114
views
EE 1.6.x Module Development
So I'm returning an array of all the information I need from my function, but I can't seem to figure out how to parse through the array once I get to the template.
Module:
Class main{
function data(...
1
vote
1
answer
44
views
Automatically set/unset category based upon field value?
I would like to automatically add blog articles to the category "Video" if a video embed is pasted into the provided field. Likewise I would like to automatically remove blog articles from the "Video" ...
3
votes
4
answers
267
views
How to 'embed' a template from within a plugin
In a plugin is it possible to output the equivalent of {embed="my_template"} if a certain condition is met?
My site index file is as follows at the moment, with php enabled and set to input:
<?...
2
votes
2
answers
358
views
Defining relationships in a plugin
I was wondering if anyone could point me in the right direction.
We've got a custom plugin that we use with ExpressionEngine that connections to a 3rd party CMS system and grabs all relevant content ...
3
votes
1
answer
122
views
How to separate view from `display_field` of a custom field type?
I am implementing a custom field type which has quite a complex display_field function. I would like to separate the view logic and at the moment I have done the following:
function display_field($...
4
votes
3
answers
931
views
Pre-fill matrix field when creating new entry?
How can I pre-fill a matrix field when creating a new channel entry.
The reason to do this (and why a matrix field is needed) is:
Data is best entered and represented using a table.
Unwanted rows ...
5
votes
7
answers
5k
views
How to escape special HTML characters in output?
It is commonly useful to escape encode special HTML characters in output to avoid breaking output attributes (among other reasons):
Take the following seemingly innocent template snippet:
<!...
4
votes
2
answers
1k
views
How to create custom RTE buttons?
I would like to create an addon which adds a number of custom RTE formatting buttons to the built-in EE Rich Text editor.
There are two issues here:
How to define the simplest add-on skeleton (...
3
votes
3
answers
102
views
Possible to "package" a Channel/Template/etc into a module?
I'm still learning EE. It seems easy enough to build something like a custom blog: define the fields I want, assign them to a channel, create templates to output the channel entries. Done.
But let's ...
4
votes
2
answers
175
views
Load stash partials with custom extension
I'm trying to parse markdown files stored on the server, and display them inside EE templates in a nice automatic fashion.
My first idea was to read the files using Stash, then parse them using ...
3
votes
3
answers
437
views
Automatically search Amazon and create affiliate link based on entry title?
I know this is gonna sound crazy, but it is a client request.
They are wanting to know if there is an add-on available or that has been developed that will automatically search Amazon with whatever ...
3
votes
1
answer
175
views
New 'Category' Hook or Action?
When adding/deleting/editing a category in the CP,
I would like to send that data to Mailchimp (where I ultimately will have the same categories)
How can this be achieved? Using a Action or a Hook? ...
7
votes
1
answer
301
views
Module development: how to follow OOP best practices
I'm developing an EE module and I want to follow OOP best practices and fulfil the MVC architectural pattern, I have a few questions about how to do this:
Where should I define a PHP Class for ...
2
votes
2
answers
1k
views
Plugin help; Cannot redeclare fatal error
I'm writing my first plugin in attempt to learn more about the backend of EE and Codeigniter. My PHP is enough to get by, but I'm no expert.
This plugin is as follows:
<?php if ( ! defined('...
6
votes
1
answer
107
views
How does including MIT Licensed code in an EE Addon work?
Things I'd like to admit and apologize for in advance:
I am very new to StackExchange and have a feeling this may be too subjective, but I'm not sure.
My understanding of the different types of ...
4
votes
2
answers
449
views
How to have multiple data table layouts on a CP page?
I'm trying to figure out how to have more than 1 data table (filtering AJAX paginating table like the entry view in the Control Panel) on a page but there's a problem; the div used for pagination is ...
3
votes
2
answers
104
views
What do you need to do to make a Fieldtype Addon SafeCracker compatible?
I've built a Fieldtype Addon and have a request to make it SafeCracker compatible.
The docs are not very clear on how to achieve this.
http://ellislab.com/expressionengine/user-guide/modules/...
2
votes
1
answer
234
views
SLASH constant isn't the same as "/" character [in PHP]?
I recently discovered that the EE/CI's SLASH constant isn't the same as the "/" character. Or, at least, in my plug-in code, (SLASH == "/") evaluates to FALSE...
They output the same character, ...
8
votes
3
answers
186
views
Addon database interaction
When creating Addons should we utilise the underlying database structure provided by ExpressionEngine for storing large numbers of items / information. For instance use channel entries? Or should you ...
14
votes
2
answers
5k
views
How do I access custom config.php variables in a plugin?
I'm writing a plugin for which I'd like to be able to set site-wide preferences via custom variables in config.php (eg $['myplugin_config_item']), and have those variables available in all my plugins ...
13
votes
2
answers
354
views
Custom plugins vs query tags: advantages and implementation
An answer to another question touched on the use of writing custom plugins as a more robust alternative to writing a SQL query in a template via the {exp:query} tag.
What are the advantages/pitfalls ...
4
votes
2
answers
229
views
Pre-populating SEO lite fields: custom extension advice
I have a client site which utilises the SEO lite module. The client has come back with a feature request which I'm trying to figure out a way to achieve: they want to pre-populate the SEO fields on a ...
20
votes
3
answers
298
views
Add-on Development with Themes and Git
I'm wondering how add-on devs who's add-ons have themes use Git? For example, the way I do things now is to just make my add-ons repo the core folder; eg, securitee or ct_admin within the third_party ...