Hot answers tagged

11

Use the EllisLab Playa & Matrix Importer


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

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

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

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

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

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

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


3

If you're having trouble with tags not working correctly in conditional statements try wrapping the them in double or single quotation marks. {if "{mymatrix:total_rows}" > 0}{!-- Here --} {mymatrix} data here {/mymatrix} {/if} Thanks :)


3

Sounds like a good use for stash. Capture the matrix (or the entire entry, it's up to you). The following assumes you know how to capure and set a list with stash, ie: {exp:stash:set_list name="matrix_block"} <!-- Capture the matrix to a list --> {matrix_field} {stash:day}{day}{/stash:day} <!-- The day --> {stash:...


3

I think the best way achieve this is to do by adding CSS. For that you just need to create one class pipe containing the + sign (either with an image or with color). Then put that pipe class on respected rows in Matrix. This way you can manage it very easily. span.pipe:before {content:" + ";} span.pipe:first-child:before {display: none;}


2

I am experiencing the same problem where it seems to happen when "Is field searchable?" is enabled within the field settings containing the Matrix field-type (not sure why??!)... I found a solution by changing line 7595 from $select .= ', field_id_'.$fields[$key].' AS `'.$key.'`'; to $select .= ', cd.field_id_'.$fields[$key].' AS `'.$key.'`'; Within mod....


2

Yeah, you've got a mess on your hands. Try this no add-on method. If it doesn't help you out, notacouch's suggestion to use IfElse should be helpful. {if entry_id == "20" && cf_product_options:total_rows > "0"} <hr class="soften"> <h2>Configuration Options</h2> <table class="table table-striped table-bordered ...


2

It looks like to view it, the user is submitting the form ... When you want to update something specific in a Matrix row, I think you have to call the row first, like: <input type="hidden" name="matrix_field_name_here[row_order][]" value="row_id_{row_id}"> If I remember right, you have to redo any other columns in the whole Matrix table or it ...


2

Your best bet is probably to create the Matrix as a new field. Then you can non-destructively work on copying the data over from the original file field to the new Matrix field. If you are familiar with working with SQL and the ExpressionEngine database, it shouldn't be too difficult to pull out the current field values and then create/update the necessary ...


2

One option would be to use Zoo Visitor to be able to work with the members as channel entries. Then you could add the list of services to the zoo visitor channel as individual select fields. So for example you would have a zoo visitor channel that contains all the members as entries, and on each entry you would have the contact info as well as the ...


2

As far as I know that's not possible. If you have a folder you need to use like that you'll have to just create a new root folder for it (if you don't want to use one of the existing ones)


2

I believe any date field in EE should have the format parameter available. Correct syntax in this case would be something like {field:job_timings format="%d-%m-%Y"}.


2

The only time I've seen this behavior is when the text in the field contains foreign characters, like if its been pasted from Word but have seen it from other PC based apps with no rhyme nor reason. Try deleting everything in the field and type it a new - don't copy paste. PS. Just noticed the output - this may not help :(


2

I'd guess your files didn't upload correctly to the server. Reupload all your EE files to the server... specifically, make sure your /themes directory in 100% uploaded. Also, make sure you are changing/setting directory & file permissions on the server.


2

I'll quote the docs here: Please note that only non-hidden and variables with early parsing disabled show up in the variable list in the Publish Form. So, make sure the vars you want to select are not hidden and have early parsing disabled.


2

Andris was close to the solution: Add the following code right above the switch statement. `if (($context == 'grid' || $context == 'matrix') && !empty($this->var_id)) { $context = 'low'; }` Then in the 'low' case (around like 163) change the query to: `$sql .= " ae.var_id = {$this->var_id} AND ae.row_id = '{$this->row_id}'";` Now ...


2

No - you can create as many rows as you want, but not as many columns as you want. Columns must be defined beforehand.


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