Skip to main content

Questions tagged [add-on-development]

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

Filter by
Sorted by
Tagged with
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 ...
2bsharpdev's user avatar
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 ...
smartpill's user avatar
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 ...
JJ.'s user avatar
  • 75
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.
Marc Miller's user avatar
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 ...
colincameron's user avatar
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 ...
Jim Pannell's user avatar
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. ...
Sandwich's user avatar
  • 542
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'] = $...
Steven Grant's user avatar
  • 2,473
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 (...
gregwhitworth's user avatar
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 ...
gregwhitworth's user avatar
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 ...
diemer's user avatar
  • 258
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 ...
user63868's user avatar
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(...
JMP's user avatar
  • 155
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" ...
Lea Hayes's user avatar
  • 1,466
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: <?...
Jim Pannell's user avatar
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 ...
SynackSA's user avatar
  • 141
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($...
Lea Hayes's user avatar
  • 1,466
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 ...
Lea Hayes's user avatar
  • 1,466
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: <!...
Lea Hayes's user avatar
  • 1,466
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 (...
Lea Hayes's user avatar
  • 1,466
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 ...
ExpressionEngineNewbie's user avatar
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 ...
Adrian Macneil's user avatar
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 ...
Tad Ward's user avatar
  • 401
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? ...
Think Graphical's user avatar
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 ...
Filippo Salza's user avatar
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('...
dgrebb's user avatar
  • 440
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 ...
Michael Witwicki's user avatar
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 ...
Eric Lamb's user avatar
  • 1,247
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/...
Elliot Lewis's user avatar
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, ...
Michael Rog's user avatar
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 ...
Steve Holland's user avatar
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 ...
Tom Davies's user avatar
  • 4,398
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 ...
Tom Davies's user avatar
  • 4,398
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 ...
Tom Davies's user avatar
  • 4,398
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 ...
Eric Lamb's user avatar
  • 1,247

1 2 3 4
5