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|...


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

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

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

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

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

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

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

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

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

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

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

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


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 ...


3

I built a fieldtype that may do what you want without your having to build one from scratch; it's called ALT Multifield. http://devot-ee.com/add-ons/alt-multifield You can create a custom block of inputs and it all gets stored in one column. Hit me up if you have questions. (I've actually got some significant improvements coming to it soon, but I can't ...


3

Looking carefully at your error message, you may have some incorrect capitalization of the EE_Fieldtype class file name. EE_Fieldtype.php is the correct way (uppercase F, lowercase t). Likely your localhost is case insensitive but your server is not.


3

I found out what the issues are. The plugins simply haven't been updated for the most recent versions of EE. I use a different locations for my third_party folder. The url in most of these plugins look for the theme directory in the default location using this url: $this->EE->config->item('theme_folder_url').'third_party/plugin_folder_name But, ...


3

You are missing a file from an add-on, most likely Solspace Calendar. You will need to verify the installation of that add-on is complete, and correct for your version of EE (which is either 3 or 4). The missing file would be /system/user/addons/calendar/ft.calendar.php. The other option is to remove the add-on, but this can be dicey if you already have an ...


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