We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Grid modifiers not displaying

Developer Preview

Andrew Weaver's avatar
Andrew Weaver
206 posts
12 years ago
Andrew Weaver's avatar Andrew Weaver

Hi,

I cannot seem to get the Grid modifiers to work.

My template code is:

{content_grid}
<p>{content_grid:name}</p>
{/content_grid}

{content_grid:total_rows}

{content_grid:table}

(where {content_grid} is the Grid field).

The data between the {content_grid} pair works, but the {content_grid:total_rows} and {content_grid:table} don’t display.

Andrew

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
12 years ago
Kevin Cupp's avatar Kevin Cupp

Thanks, Andrew. I think I ran into this as well. Does this field happen to not have any searchable columns? It’s a quirk but also a performance feature of the channel entries parser for custom field SINGLE variables to not even instantiate a fieldtype if there is no data for it in the channel_data table, so we ended up having Grid store a blank space in channel_data to fix it (return ’ ‘; in Grid_ft::save()). Hopefully get another dev preview out soon and you can let us know if you’re still having this problem. Thanks again for testing this and reporting the bug!

Kevin

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
12 years ago
Andrew Weaver's avatar Andrew Weaver

Hi Kevin,

Thanks for your reply.

You’re right - I don’t have any columns set to be searchable. I tried changing this and get a different error:

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: relationship_parser/Tree_builder.php

Line Number: 329

but it sounds like you’re on the case, so I’ll hold off until the next preview.

It’s looking really good, though.

Andrew

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
12 years ago
Kevin Cupp's avatar Kevin Cupp

Thanks, Andrew. That error looks familiar, I think we’ve squashed that one too, let us know if it comes up again after the next preview.

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
12 years ago
Andrew Weaver's avatar Andrew Weaver

This seems to fixed in the 20130821 build.

Thanks, Andrew

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.