Hot answers tagged

11 votes

Convert Matrix to Grid

Use the EllisLab Playa & Matrix Importer
user avatar
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: $...
user avatar
  • 11.3k
3 votes

Error when using Grid field: You are not authorized to perform this action

This is a known bug in 2.9.0 and will probably soonish be fixed in an update See: https://support.ellislab.com/bugs/detail/20462/grid-fieldtype-brings-up-warning-when-rows-are-present-on-entry-submit ...
user avatar
  • 2,157
3 votes

Channel Entry API and Grid field

I'm pretty sure you can just pass in the fieldname the row and column like $data['field_id_X'][rows][new_row_1][col_id_1] = 'row 1'; $data['field_id_X'][rows][new_row_2][col_id_1] = 'row 2'; Just ...
user avatar
3 votes

Using Low Variables and Grid to return a count

You can use the Search parameter to return only rows that have the checkbox cell checked. {exp:low_variables:parse var="lv_homeslider" search:name_of_checkbox_cell="true"} {total_rows} {/exp:...
user avatar
  • 388
3 votes
Accepted

Creating rows with ExpressionEngine and a Grid using Switch

If you're wanting the switch tag to apply to the grid rows, then you need to prefix it with your grid field name (docs): {press_releases:switch='|||</div><div class="row">'}
user avatar
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 ...
user avatar
  • 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> {...
user avatar
  • 5,353
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 --}...
user avatar
  • 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 ...
user avatar
2 votes

Grid field type with 'row_id' variables is not working properly in channel tag

If you are using php in this way, you could just not show the output if it is set to -1 {exp:channel:entries channel="xyz" entry_id=1} <?php if ($rowsId != -1) {?> {profile row_id="<?...
user avatar
2 votes

Grid {field:total rows} is not returning correct value

If your conditional is checking if it is > 0 this would work fine as a replacement: {if foo:total_rows != ""} You have more than 1 row. {if:else} You have 1 row. {/if}
user avatar
  • 1,029
2 votes
Accepted

Grid field options - file and HTTPS

The thing you should do is edit your upload preferences with a relative path and not an absolute, that is to say: Server Path to upload directory = /the/actual/server-path/to/my-site/images URL of ...
user avatar
  • 3,163
2 votes
Accepted

Using Grid with Categories

Categories can only be assigned to entries, not fields. You're better off to create a new Grid field for each part of the menu (Appetizers, Entrées, etc), so that you can enter each menu item row-by-...
user avatar
  • 17.4k
2 votes

Is there a layout switcher in EE2?

If I understood what you want, maybe one of these add-ons can help you: Entry Type - A dropdown fieldtype that shows/hides other fields on the publish page; Better Pages - Better Pages is an ...
user avatar
  • 6,108
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}
user avatar
  • 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"} {/...
user avatar
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 ...
user avatar
  • 11.3k
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 ...
user avatar
  • 1,232
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/...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
  • 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</...
user avatar
  • 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.
user avatar
  • 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 ...
user avatar
  • 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/...
user avatar
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 ...
user avatar
  • 1,577
1 vote

Channel Entry API and Grid field

Very close to @johnathan-waters answer I imported new grid rows using this code $data['field_id_X']['rows']['new_row_Y']['col_id_Z'] = 'value';
user avatar
1 vote

Can you embed a Grid field?

So the channel entries tag that outputs this lives somewhere other than where your navigation is built, I'm assuming. Without seeing your template I couldn't say for sure, but this sounds like a great ...
user avatar
  • 2,255
1 vote

Storing grid data with stash

WOW! I'm an idiot. lol I read right past the lists in the docs. Thanks for a great add on and doc set Mark. ;) https://github.com/croxton/Stash/wiki/Lists {exp:stash:set_list name="mini_links" ...
user avatar
  • 1,610

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