3

My little test looks like blow (fecthing a static channel entry 2 - works getting the data out )

When I submit my grid fields gets empty'ed Can somebody please help with the right syntax to update the grid values - plus if I want to add a new row.

my grid field is called mylist , in this i have two textfields text3 and date4

How is it done ??

{couldn't get the code to display so attact a image} enter image description here

1 Answer 1

3

The simplest way is to use

{field:your_grid_fieldname} 

to automatically output the grid content. Make sure you are also including the channel form css:

<link href="{path=css/_ee_channel_form_css}" type="text/css" rel="stylesheet" media="screen">
5
  • Had the idea to only show some fields ( Guess i can start hiding Stuff in CSS ), But your solution works thanks (thumbs up).
    – bomanden
    Dec 11, 2013 at 5:13
  • I believe you can also do it like you were originally trying to, but the input name has to be correct for each cell. Take a look at the html source when using the {field:your_name} tag and you can see the format that ee is expecting for a grid cell. It'll be something like name="testgrid[rows][row_id_2][col_id_8]". Dec 11, 2013 at 15:22
  • I see what you mean . Thanks very helpful .
    – bomanden
    Dec 12, 2013 at 16:40
  • I also wish there were more options for customizing the output. In my case, the autogenerated table is mysteriously wide and I can't seem to control it, and the row handles don't work… :-/ Jan 24, 2014 at 2:53
  • I'm having same issue that Charlie is. Did anyone get this customized and working? If so how?
    – CreateSean
    Feb 5, 2015 at 21:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.