Hot answers tagged

11

Use the EllisLab Playa & Matrix Importer


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

Pixel and Tonic obliged me with this request recently. Just purchase a license for Matrix, then email them to request the last available EE1-compatible version (I believe it's 2.5.3).


5

Take a look at the columns in exp_matrix_data table in the database. Does it have a field var_id? If no, then the version you should set is 2.2. If yes, does it have a field is_draft? If no, then the version you should set is 2.3 If yes, then the version you should set is 2.5.8 Now, set the version number we determined in the previous three steps for the ...


5

Unfortunately, there wasn't a good answer in getting this to work with Matrix. Everything I tried still resulted in a page load time of 14.6 - 17.2 seconds. I worked with EllisLab all day Friday from like 2-9. We spent the day debugging templates, analyzing output, checking for red flags, etc.. I completely rebuilt the template using the native Grid field ...


5

EE simply removes any tags corresponding to custom fields that have no data. So by the time EE is ready to parse the outer {if} conditional, it will look like this: {if > 0} Try wrapping the field tag in quotes: {if '{tech_documents:total_rows search:doc_thumb="IS_EMPTY"}' > 0}


5

If you know how to create a production or development server for EE2, you can create a staging server... if you don't know how to create a development or production server then go find that out first. The challenge with database driven CMS's however is not the servers, it is the database that drives the CMS. Before you can push changes that include any ...


4

Here's the response I got from P&T support regarding this error. Solved the issue for me: Take a look at the columns in exp_matrix_data table in the database. * Does it have a field var_id? If no, then the version you should set is 2.2. * If yes, does it have a field is_draft? If no, then the version you should set is 2.3 * If yes, then the version you ...


4

Take a look at the columns in exp_matrix_data table in the database. Does it have a field var_id? If no, then the version you should set is 2.2. If yes, does it have a field is_draft? If no, then the version you should set is 2.3 If yes, then the version you should set is 2.5.6 Now, set the version number we determined in the previous three steps for the ...


4

Inside your Matrix tag pair this will work: {if expiration_date_column > current_time} {!-- not expired yet, put your row html here --} {/if} Or you can use the search parameter on the Matrix opening tag. This is probably better if you only want your result set to include unexpired rows: {your_matrix_field search:expiration_date_column=">{...


4

I think you're on the right track. I'd create a Matrix column that is a dropdown or multiselect. Then output those variables as CSS classes or data attributes and handle the sorting on the client side using something like this: http://mixitup.io/#Documentation. <ul id="filters"> {your_matrix_field} <li data-filter="{matrix_select_col_name}>{...


4

Perhaps there is a more elegant way, but this works: {article_images} {if total_rows > "1" && row_count == "1"} <div id='news_slider'> {/if} <img title="{img_title}" src="{img}" /> {if total_rows > "1" && row_count == total_rows} </div> {/if} {/article_images}


4

You can use Matrix's search parameter to return only the rows of interest: {report_articles search:report_type="=Land"} Show the Land data {/report_articles}


4

There’s a Javascript bug in EE 2.8.0 that breaks the field settings page and other areas of the CP when certain add-ons are installed, including Matrix. It’ll be fixed in 2.8.1, and EllisLab has posted a patch file here: https://support.ellislab.com/bugs/detail/20165


3

In case this helps anyone else out there I fixed it with the same versions of EE (2.2.2) and Matrix (2.2.2.1) as the OP and with php 5.4.x and php5.5.x. Essentially I did a diff between the latest version of Matrix (2.5.10) and a couple of older ones and tracked it down to these two parts. File: system/expressionengine/third_party/matrix/celltypes/file.php ...


3

I found the problem - I had custom fields disabled in my entries tag (d'oh!)!! This seems to cause the aforementioned problem if you try to parse matrix tags.


3

Are you using the latest version of Stash (as of writing 2.3.9)? Your code should work but a few versions back there was a bug in {exp:stash:parse} which meant that parse_vars didn't get run under certain circumstances. https://github.com/croxton/Stash EDIT: just realised you've left off the wrapping channel entries tag which would have made it clear why ...


3

It seems this problem can now be fixed by updating to the latest version of Matrix (2.5.10) per the change log found here: http://docs.pixelandtonic.com/matrix/changelog.html Matrix 2.5.10Released on November 4th, 2013Fixed a PHP error that would prevent File cells from saving properly. I havn't confirmed this yet, but it's in the change log. I'll be ...


3

You can't do this with a Matrix tag, but you could use Stash to set a list of the Matrix rows, then get the unique values only. https://github.com/croxton/Stash/wiki/%7Bexp%3Astash%3Aget_list%7D#unique---yes--no- matrix set_list {exp:channel:entries channel="blog" entry_id="123"} {exp:stash:set_list name="blog_related_entries" parse_tags="yes" save="...


3

If by "robust enough" you mean do they have basically the same features, yes. I've used EE's Relationships without any issues. I love Grid's search:column_name feature. That's a step up from Matrix. However, since it is brand new, it does not work with as many third party fieldtypes as Matrix. I'm sure that will change in the next 2-3 months. Depending on ...


3

So, I've found a way to achieve this, which seems to work in the reduced test case that I created (Grid fieldtype with one column of text type and only one entry being entered in at a time). In the future, I'll create test that's a bit more complex and see if it becomes more involved. The code for this is: <input type="hidden" name="field_id_9[...


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

After updating back to 2.2.1, running the following query will fix this: UPDATE exp_assets_selections SET content_type = 'matrix' WHERE row_id > 0 AND (content_type = '' OR content_type IS NULL) We're about to release Assets 2.2.2 that addresses this, but, while it's still not out, the query above should take care of your problem permanently. This only ...


3

I think this is a bug specific to the EE 2.5.5 version. It looks like the error was occurring in SuperSearch too in 2.5.5 (http://www.solspace.com/forums/viewthread/17280/#62841) and upgrading to EE v2.6 fixes it.


3

Are you trying to get the count of multiple playa entries for each matrix row? If so, you should be able to do something like the following, setting a different namespace prefix for matrix and playa to separate their tags: {your_matrix_field_name var_prefix="mx"} Matrix row {mx:row_count} of {mx:total_rows} total rows.<br> {mx:...


3

After examining some pseudo-related questions I discovered that multiple instances of the matrix.js were being loaded causing multiple executions upon the Add Row click event. I added include_assets="no" on channel forms after the first one which prevented the problem.


3

By default, the members of the guests group cannot upload to EE; this is a permissions issue, but, it's permissions within EE, not with the filesystem, which is why CHMOD'ing to 777 didn't help. Here's a link to a previous post with this problem, and a solution.


3

I found a solution. The Nolan Add-on does what I wanted. There is an option to stack the nolan field verticaly. Now it looks pretty :) And it even works within the multi-language environment.


3

So, a bright (Latvian) mind was kind enough to look into this. It seems the problem lies with ExpressionEngine code on this one. Embeds or Stash will work just fine but you can also patch EE as follow: File: system/expressionengine/modules/channel/libraries/channel_form/Channel_form_lib.php Method: replace_tag Find this: ee()->api_channel_fields->...


3

{if row_count == total_rows / 2} is not exist actually, is exist - from version 2.9.0. I tested it with EE v2.9.2 & Matrix 2.6 Mathematic Operators example for your case - split to 2 columns: {if (total_rows % 2 == 0 && total_rows / 2 == row_count) || (total_rows % 2 == 1 && (total_rows+1) / 2 == row_count)} <...


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