Hot answers tagged

11 votes

Convert Matrix to Grid

Use the EllisLab Playa & Matrix Importer
5 votes
Accepted

PHP error when using Low Variables with Grid and Assets

Okay, this definitely is an Assets issue, but here's a temporary fix. Open up ft.assets.php and look up the grid_replace_tag method, around line 1771. In there, you can see this line of code: $...
  • 11.3k
3 votes

Grid "no_results" not working?

There is no no_result variable or condition for grid. Use total_rows instead. {if store_telephone_data:total_rows >= 1} ... {if:else} <td>N/A</td> <td>N/A</td> {...
  • 5,353
3 votes

How to get results from a grid field in low search

Did you mark the Grid field as searchable after creating entries? If so, you need to re-save those entries in order to populate the exp_channel_data table with searchable data, which Low Search in ...
  • 11.3k
3 votes

Stash and Multiple Grid Fields Not Populating

Let me show you how the parser will parse that code before Stash tries to capture it as a list. I'll assume your relationship field only allows you to select a single person: {!-- first grid field --}...
  • 5,234
2 votes
Accepted

Error when try to add new field: col_settings_tmpl.php

I had this problem just now. For me.. it was due to a duplicate of a third party module left over from when i updated. Basically i was updating low variables and duplicated the exisitng files just ...
2 votes

how to check if grid field is empty

Try {if my_grid_field} {my_grid_field} Stuff in here if the grid field has rows {/my_grid_field} {/if}
  • 7,176
2 votes
Accepted

Totaling up and averaging numeric Matrix/Grib fields

Matrix actually comes with this functionality, if you look at their docs, there is a average function. {exp:channel:entries channel="YOUR_CHANNEL"} {YOUR_MATRIX_FIELD:average col="SCORE_COL"} {/...
2 votes
Accepted

Using a grid/matrix field to set stock levels for different colours with CartThrob

You should be able to setup a product modifier field as a regular grid or matrix that allow counting the inventory of each item separately but don't make a difference on price, or are priced in the ...
  • 1,232
2 votes
Accepted

Channel Entries - searching relationship field?

This is easy using Low Search and its Relationships filter. You don't necessarily need a search form, as you can use the Results tag as a drop-in replacement for the channel:entries tag. Then you can ...
  • 11.3k
2 votes

Assets in Grid In Low Variables - multiple files

I reported this bug to Pixel & Tonic, and they right away got working on a "duct-tape" type fix. It seems, to get this working, in Assets 2.6, you can change line 1810 of system/expressionengine/...
2 votes

Listing grid fields as a relationship choice

I don't think you'll be able to solve it this way. The intent of relationships is to relate Channel Entries together, not relate different data points in a specific entry to another entry. I would ...
  • 5,900
2 votes
Accepted

Column Width not working in EE3 Grid field when editing entry

The "column width" parameters does not seems to be used for now.. What i did is modify themes/ee/cp/css/common.min.css Because my screeen is 1920px wide.. i change the max-width of .col-group to ...
  • 554
2 votes
Accepted

Low Search - option thats not in field being searched for

You need to add value="" to the first option. This is how HTML and forms work. This <option>Hello World</option> will submit Hello world This <option value="hi">Hello World</...
  • 11.3k
2 votes
Accepted

Using video links within grid text field

There's a setting in your channels​ preferences that you can toggle to automatically convert urls to links. Find that setting and turn it off.
  • 3,163
2 votes
Accepted

data-label not displaying with {grid_field:table}

The Grid field's :table modifier is actually just a single tag, not a tag pair. {table:table cellspacing="0" cellpadding="0" class="my-table"} That variable by itself will output the entire table ...
  • 2,255
2 votes
Accepted

Entries tag search:fieldtype=""

To use search parameter in Grid you have to add search parameter in grid fieldtype not in Channel entries tag. You can get more information from below example. https://docs.expressionengine.com/latest/...
2 votes

odd even columns in expressionengine with bootstrap

Yes you could use switch also. {exp:channel:entries} <div class="wrap {switch='col-lg-4|col-lg-8'} col-sm-12 content-item"> ... </div> {/exp:channel:entries} Would output ...
  • 1,577
1 vote

Can you query a grid field to return a list of distinct fields?

I preface the answer by saying that I do not recommend using SQL to get at your entry data this way, as it's what the Channel Entries tag and field variables are designed to do for you. That said, ...
  • 2,255
1 vote
Accepted

How can I make dynamic Grid (or Matrix) fields in the control panel?

It is not. The simplest solution is to have all four columns and simply instruct the content manager to use the appropriate 2nd, 3rd, or 4th column based on the value of the 1st.
  • 17.4k
1 vote
Accepted

MSM and Grid Fields

No, you should be fine. It will be a pain in the ass to manually manipulate the schema (using a GUI tool like MySQL Workbench) since you will be looking at a list of hundreds of tables, but there is ...
  • 5,900
1 vote
Accepted

File upload in grid renames file field

There was a fix for the filenames with special characters issue in EE2.10.3. Doing an upgrade should fix it.
  • 1,577
1 vote

Can I export Channel Images data to Grid?

Here's one method I use for similar scenarios. The first step would be to get your Channel Images data into a CSV or XML document. To do that create a template to output the data you need to export ...
  • 1,577
1 vote

Assets in Grid In Low Variables - multiple files

When using the Parse or Pair tag to output a Grid field, the tag will act the same as a regular Channel Grid field would. That means you can use the same template tags and parameters. That means the ...
  • 11.3k
1 vote

How to create a Grid field in extension

Have you had a look at the Grid Model that is in the system folder? Specifically /system/expressionengine/models/grid_model.php This model has methods for creating new Grid Fields (create_field on ...
  • 2,418
1 vote
Accepted

Ordering Channel Entries results based on Grid content?

You can only order entries by the literal contents of the fieldtype's column in the exp_channel_data table. So you can order by session_time (if you set that Grid field to be searchable - otherwise ...
  • 17.4k
1 vote

Conditional Statements to show Open Hours

jrothafer's troubleshooting suggestion will tell you a lot. If that looks good, try putting the tags in single quotes like so: {if '{current_time format="%h"}' >= '{branch_hours:opening_hour}' &...
1 vote
Accepted

Solspace Importer: Native EE Grid and Relationships

Nope, Importer does not support importing into Grid fields, nor does it support creating/populating relationship fields. Have you looked at DataGrab? Solspace does have a 30 day money back guarantee.
  • 17.4k
1 vote
Accepted

Hide Grid row based on date

First: a value will always be smaller than itself plus any other value. You need to compare the date against the {current_time}. Second, you need to parse all values before the Math Plus plugin, so ...
  • 6,108
1 vote

Grid conditional for a file(s) - If file exists display content (file)

Do it exactly like you think. {my_grid_field} {if my_grid_field:column}{my_grid_field:column}{/if} {/my_grid_field}
  • 7,176

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