Hot answers tagged

12

It sounds like Matrix may not have completed it's update routine. Did you go to Add-Ons → Fieldtypes → Matrix to trigger the update script?


11

Use the EllisLab Playa & Matrix Importer


10

Yep, just check to see if the matrix field total_rows are greater than 0 {if my_matrix_field:total_rows > 0} Matrix field has rows {/if}


8

You actually have to do sort="random" in Matrix. It's not like channel:entries in that way.


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


7

It's a little tricky to help since I can't find a documentation page for the Allinone Thumbnail Banner jQuery plugin. But if I had to guess based on what the HTML output is supposed to look like, then these are the issues you are likely to be having: The first issue is that you are not closing your ul tag. It needs to be closed before you output your ...


6

You should try changing your conditional to test if the content is not equal to "". Also this should not be an elseif, it should simply be and else statement {exp:channel:entries channel="{segment_1}"} {matrix_primary_tag_pair} {matrix_field_1} {if matrix_field_2 != ""} {matrix_field_2} {matrix_field_3} {if:else} {...


6

After some help from the wonderful Mr. Croxton I was able to sort it out. Here is how to pull this off. When grabbing the data in your model you need to stash the {entry_id} of the parent list (I call mine {e_id} for no real reason). Then, when setting the nested list, provide context with the {entry_id} by using name="employees_{entry_id}". {exp:stash:...


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

You can use {if banner_matrix_field:total_rows >= 1} graphic{/if} Matrix docs link


5

It’s actually just sheer luck that that worked for you in EE1 – there are a lot of variables at play with EE’s parse order, and most of the time that kind of thing won’t work. You can get it working using Matrix and Playa’s var_prefix parameters, though: {exp:channel:entries} {matrix} {playa var_prefix="playafield"} {playafield:...


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

Just attach a filter on the image column to check it isn't empty: Total Images: {the_matrix:total_rows search:image="not IS_EMPTY"}


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

Is this not a case for using {switch="||do-thing"}? {switch='<div class="row">||'} {cf_about_us_biographies} <div class="four columns"> <img src="{cf_about_us_bio_photo}"> <ul class="accordion"> <li> <div class="title"> <...


4

Try to use multiple switch tags. {my_matrix_field} <table cellpadding="0" cellspacing="0" border="0" width="210" align="{switch='left|right'}"> <tr> {switch='|<td width="10"></td>'} <td width="200"> <img src="{image}" alt="{alt}" width="200" height="200" /> &...


4

Doh! The answer is to use the documented var_prefix parameter so I can then reference the entry's {title} field as normal :$ That Brandon fella has thought of (nearly) everything :)


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

Your JS forms look like they're attempting a cross-domain communication: HTMLHttpRequest cannot load http://condley-intranet.dev/. Origin http://condley-banking.dev is not allowed by Access-Control-Allow-Origin. Are you able to locate where you're crossing domains and make them consistent? I'd start with your General Config and/or /system/...


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

You didn't provide what the numbers were without Matrix or P&T Field Pack. But it also looks like you're posting the progression data. Generally speaking, calls to extensions and add-ons will jump the memory usage and progress time. But I wouldn't consider that a large jump, by any means. A page using almost nothing can take up 8MB of memory to load. I'...


3

There are a couple of ways to approach this if you are just wanting to have price you would want do something along the following (as referenced here) Most variables can also be used outside of the product form, inside a standard {exp:channel:entries} loop. For example, if your Store products custom field is named “product_details”, then the price is ...


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