Hot answers tagged

16

Content Elements contains an option for tables that lets the user create columns on the fly. Haven't tried it yet but it looks pretty awesome and seems to have useful template tags for the table element.


15

Email support[at]objectivehtml.com. I have a new add-on that I have been developing since Spring 2012 that does exactly this. Like everything I build, its focus is on a rock solid and configurable API. It's still not ready for a public release, but it's used on a number of our clients' sites (in production). I am happy to let you install it and give it a ...


4

The Redactor.js has a nice table builder if you want a WYSIWYG field type. You can demo it here: http://imperavi.com/redactor/ All of the Redactor field types should come with this feature: Editor Redactee Reedactor


3

EE uses the codeigniter table library .. http://ellislab.com/expressionengine/user-guide/development/cp_styles/index.html#table-based-layout The issue you're probably running into is that it's trying to use one of the default CP styles. The library itself should be usable without being in the control panel, though jquery tablesorter may still be a better ...


3

Are you talking about using tables as a fieldtype? There's no table fieldtype in EE, but you can use Wygwam and configure it to show the options for building a free-form table in the editor.


2

Your best bet is to construct your own data tables - see the DataTables site I have used DataTables to make multiple tables on a page - for example, my HooKan module has nine large tables on a page. Once you have had a look at how DataTables works, come back if you have any problems implementing


2

You could do this by creating each ingredient as an entry then building the table using an exp:entries tag pair. You can then use Low Alphabet (http://gotolow.com/addons/low-alphabet) add on to create the alphabetic sorting links required. If you didn't wish to pay for the add on then you could get the data out using a custom database query or number of ...


2

The Grid field's :table modifier is actually just a single tag, not a tag pair. {table:table cellspacing="0" cellpadding="0" class="my-table"} That variable by itself will output the entire table including all variables; it's just a shortcut for those who don't want to customize or write their own table markup. See the :table modifer docs for details. ...


1

I've done this before by removing the javascript sort function in my own addon's jquery file. $('table.mainTable > thead th.no-sort').unbind();


1

Not 100% sure I understand what you are trying to do - in your example code you appear to want to display all entries in the grid field, and have a heading included if there are downloadable documents available for an entry. The only way to do this is to loop through every row in the grid field. I think you are asking if there is a way to get the ...


1

Try ../leerlijnen/school/{entry_id}/#toevoegen You may have to put it between channel tags to get it to parse.


1

The primary key for entries are generated in the exp_channel_titles table. When the entry is created the data first goes there and then it inserts into the exp_channel_data table using the same key. Edit: In Api_channel_entries.php these two functions are called: ee()->db->insert('channel_titles', $meta); $this->entry_id = ee()->db->...


1

What you have will work fine. You can query any table in the database with the query module. You may, though, have issues with table prefixing. I'm not sure if the query module auto-prefixes tables or not, but in the past I've had issues with tables not named with exp_, as EE tends to automatically add the prefix to queries.


1

In this case matrix or the native grid field might be better suited to what you're trying to accomplish. The thread you referenced is aimed at having a variable set of columns and rows. However, in this case you have predefined columns (SKU, EAN, ect.) and only a variable amount of rows.


1

The item number 2 can be done using the exp:channel:entries and an embed: {embed="template_group/.table" has_awards="{exp:channel:entries channel='creative_talent' limit='1'}{credits search:awards='not IS_EMPTY' limit='1'}yes{/credits}{/exp:channel:entries}"} Sadly, this doesn't work for number 1. So, I used query module for both. In my sample code, roles ...


1

I just checked, and the EE_Table class, as well as the EE_Table::set_columns() method were introduced in EE 2.4.0. Before that, EE only included the default CodeIgniter (v2.0.1) table class.


1

I used set_base_url() in my index() function, where I set up the table. $this->EE->load->library('table'); $this->EE->table->set_columns(array( // columns )); $this->EE->table->set_base_url('C=addons_modules&M=show_module_cp&module=my_module'); $data = $this->EE->table->datasource('_datasource'); $data['base_url'] ...


1

Thanks to one of my teammates for suggesting I disable CSS & JS to troubleshoot. The table is AJAXified, which overrides the link values. I was missing this: $this->EE->table->set_base_url('C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=module_name'); Which the AJAX links require to refresh the table.


Only top voted, non community-wiki answers of a minimum length are eligible