8

Ah, you want groups of three wrapped and not every third one, wrapped, right? @mediagirl almost has it, but if your returned entries is not evenly divisible by three, you'll have a problem - the final switch will not take effect. You therefore have to close the wrapper conditionally, like this: {exp:channel:entries channel="pages" disable="categories|...


6

Yeah, that's the wrong way to go about it. You want to use the load class and use the view() method. You can even pass variables to the view that can be used programmatically. public function display_field($data) { $vars = array( 'data' => $data, 'some_var' => 'some value', 'some_array' => array( '1', ...


5

The themes/third_party/wygwam/lib/ckeditor/config.js file actually comes with the code necessary to do this – you just need to uncomment it. Have you tried that?


5

Pixel and Tonic has another field_type called P&T List which might be suitable. If you just need a list of items, I'd look at that. I believe it's free.


5

There is not - although you could add some javascript to do so (using, for example, the CP CSS & JS add-on). This would be a good feature request for Pixel and Tonic to add to their P&T Field Pack fieldtypes.


5

After a few minutes I was able to figure out an easy way to do this. I found a similar question here on EESE about adding custom JS to a new entry. I was able to put the CSS I needed right in instructions of the field. I had to keep everything on one line, because the field instructions look like they're being parsed with XHTML, so it was adding paragraph ...


5

Use the session cache: if (ee()->session->cache(__CLASS__, __FUNCTION__) === FALSE) { ee()->cp->add_to_head('/path/to/foo.css'); ee()->session->set_cache(__CLASS__, __FUNCTION__, TRUE); } Your code will only run once per page load.


4

Grid Lite is pretty similar to Matrix, and free. So if you're using matrix solely for translation links, this seems perfect.


4

As a small edition to this (and it's a great solution by the way!), when I need to do something like this ... rather then putting the CSS (or JS!) directly into the instructions field, I create a .css or .js file and then add the link to the instructions field: <script src="/assets/js/ee_cp.js"></script> or <link rel="stylesheet" type="...


4

Nonprofit_tech's suggestion of P&T List is a good one. If that is too light-weight, then there is Grid Lite, which is a free, pared-down Matrix clone.


4

Fields are generally not interlinked and, to be honest, the workflow you're describing doesn't sound ideal anyway. If you're getting to the point where you have so many options to select from that the UI is getting unwieldy then, rather than splitting the data into different sets, I'd have thought the best approach would be to switch to a revised UI that ...


4

What happens if I get rid of a field? Will that contents still be in the data base? No, if you delete a field from a field group the data is gone. Can I keep the code to display that field in place in my template and use a conditional to render it only if it exists (even though it is no longer a valid "input" field)? It shouldn't cause any issues ...


4

Any ft files in the root of your package directory (system/expressionengine/third_party/your_package) will be recognized as part of the package. See P&T's Field Pack for an example.


4

unexplainedBacn is right. Or you can also use the XML Encode plugin for this. It's actually included with ExpressionEngine This plugin converts reserved XML characters to entities. It is used in the RSS templates. To use this plugin, wrap anything you want to be processed by it between these tag pairs: {exp:xml_encode} text you want ...


4

You have to add the has_array_data property to your fieldtype class: class My_field extends EE_Fieldtype { public $has_array_data = TRUE; ... }


4

Replace "parent::EE_Fieldtype();" on line 23 of ft.copee_pastee.php with "parent::__construct();"


3

I think this may be somewhat more simple. Can you go to your Wygwam editor configuration, under Advanced Settings, in the drop-down, choose Skin and follow those instructions. Let's see if that helps? If that doesn't work, please check your dev console for any JS errors and report them here. Thank you! Edit to add: this is quite an old post, but you ...


3

Each field type stores it's data differently, some custom add-ons will create one or more extra tables to store fieldtype data for entries. For instance, Matrix will create a table: exp_matrix_cols and exp_matrix_data to store column settings and data that will populate those columns. Relationships (I'm assuming you're talking about stock EE) are in the ...


3

As far as i know, you cannot do this in a fieldtype in any other way. What i've seen most often is a accompanying module that registers an action so that the method in the module acts as the ajax endpoint. That's not a huge amount of extra work thought is it really :) I do fully appreciate what you're saying though, it's a shame it can't all be self ...


3

Have you looked at Content Elements? http://dvt.ee/ad0g9RJ


3

You'll need to override the default CKEditor rules for processing P tags. Add this: this.dataProcessor.writer.setRules( 'p', { indent : false, breakBeforeOpen : true, breakAfterOpen : false, breakBeforeClose : false, breakAfterClose : true ...


3

You forgot the '' in your tag : <h5>{event_date format=%D, %F %d, %Y}</h5> Correct : <h5>{event_date format='%D, %F %d, %Y'}</h5>


3

You could check for the presence of the Safecracker library: if (isset(ee()->safecracker)) Or check if you're in the control panel if (REQ === 'CP')


3

There is no documentation on this. Think of a fieldtype not as a single input or textfield, but as a single piece of data. So you could build multiple fieldtypes as separate files and folders (and completely different add-ons) or there's a couple of other ways to approach it: either storing the data in channel_data table as delimited or serialized data (for ...


3

Unfortunately, I don't think this is supported natively (thought I would love to be shown otherwise!). The way I achieved this was to use the MX Calculator extension to calculate whether a row's count is divisible by 3 or not: {matrix_test} <span style="display: none;"> {exp:mx_calc expression="mod({row_count}, 3)"} </...


3

It seems that WYGWAM was installed previously and still having record in database table. Check the database table "exp_fieldtypes" if having any record with field "name" as WYGWAM. You can delete that record. Also, there may be some custom fields which may be using WYGWAM field type. You might check it also.


3

As folks mention above, no custom development is needed here. Just use the native Grid fieldtype with two columns - one using the File fieldtype (called, say, file), and the other using the Text fieldtype (called, say, url). Then, in your template: {my_grid_field} {if my_grid_field:file}<a href="{my_grid_field:file}">Download this file</a>{/...


3

You can try making the requests "schemeless"... Instead of http://www.example.com/styles/ngen_file_field.css or https://www.example.com/styles/ngen_file_field.css simply edit to: //www.example.com/styles/ngen_file_field.css This will cause the resources to inherit the scheme of the page in which they are loaded.


3

The answer to getting the fieldtypes all under SSL is to make sure the fieldframe settings are set to https in the fieldtype path. utilities -> extensions manager -> fieldframe -> settings .htaccess forces ssl by the below: RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] So to recap, converting an ...


3

I've done it before. Take a look at the display_field method of ft.wygwam.php. You'll see that it's fairly simple to instantiate a WYGWAM field. A few calls to the Wygwam_Helper class to load the JS/CSS. There are also some helpers for properly formatting the data. You'll need a textarea with an id, and also the ID number of a WYGWAM config. I don't want to ...


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