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
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
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: 329but it sounds like you’re on the case, so I’ll hold off until the next preview.
It’s looking really good, though.
Andrew
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.