Would it be possible to add an option to the config file to set the width of the column with the label and the column with the actual field?
Currently they are col-sm-3 and col-sm-9, respectively. Personally I keep my database field names short and I need a lot of width for the fields as I mostly u…
I found it, boy is my face red…
Turns out it was a stupid copy/paste error; I used ‘category’ instead of ‘categories’. I should really have gone for more descriptive names so this wouldn’t have happened.
I’m sorry for wasting your time!
First super quick test with the latest version of Grocery CRUD (thanks!) gives me the same result as before, the edit modal doesn’t even load.
Maybe I am missing something so let me ask it this way: looking at the example on the setRelationNtoN page, what would you have to do to make only the Title…
This is what I have:
$crud->setRelationNtoN('categories', 'film_category', 'category', 'film_id', 'category_id', 'name');
$crud->columns(['title', 'question', 'answer']);
$crud->defaultOrdering('film_id', 'desc');
$crud->setTexteditor(['question', 'answer']);
When I use $crud->fields it’s not poss…
I would really like to get an official answer on this.
I finally managed to get setRelationNtoN to work by changing the names of some of the fields (I usually use a scheme like film_fk to distinguish it from film_id in the main database but that doesn’t work with GroceryCRUD, it turns out).
But now that I have it working there’s another issue I have ru…