You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin is absolutely great, thank you for sharing it!
One suggestion I have is to add a way to check if the table is actually used. Right now the default state of the columns and rows are such that empty data is saved with the entry even if nothing is entered so there is no good way (that I can tell) to check for the field in a template conditional.
Even if you delete the columns and rows the next time the publish form is loaded it defaults back to one empty row for each and would be saved again that way.
Again, this is a great plugin! Perhaps I'm just missing something obvious being fairly new to Craft/Twig.
The text was updated successfully, but these errors were encountered:
I got around it for now with this (super ugly) template check to see if the first row is empty {% if entry.demographics.rows[0][0] is defined and entry.demographics.rows[0][0]|length %}.
If I dig deeper I'll definitely submit a PR. Thank you!
This plugin is absolutely great, thank you for sharing it!
One suggestion I have is to add a way to check if the table is actually used. Right now the default state of the columns and rows are such that empty data is saved with the entry even if nothing is entered so there is no good way (that I can tell) to check for the field in a template conditional.
Even if you delete the columns and rows the next time the publish form is loaded it defaults back to one empty row for each and would be saved again that way.
Again, this is a great plugin! Perhaps I'm just missing something obvious being fairly new to Craft/Twig.
The text was updated successfully, but these errors were encountered: