I’ve been putting together an application that uses Grid inside of Channel:Form and I’ve come up against a unique problem.
The Grid tag pair does not seem to have an equivalent of channel:entries’ {if_no_results} tag.
This is problematic when doing a form-based application that uses a custom template and not just {field:myGridField} to have EE create the markup.
Nothing inside the Grid tag pair will display if there is not at least one row of data, which removes my ability to have an empty input in the template when there is no data originally.
I’m trying to avoid using the default Grid styling (doesn’t match client design) or some wacky javascript workaround to inject my own markup if EE doesn’t.
Does anyone know if there is a {if_no_results} equivalent for Grid? Or where to start looking to extend the fieldtype to include this? Or a better way to achieve my goal in a template?
Thanks!