I have a question regarding a suggestion for future releases, and was wondering if this could be implemented in a later version of Grocery CRUD.
Let's say I have 3 tables:
Table: page (has 7 fields)
Table: box (has 5 fields)
Table: page_box (has 3 fields, namely page_id, box_id, position)
I have set up "Manage pages" and added a n_n relationship for the boxes, as follows:
$crud->set_table($this->config->item('db_prefix') . 'page');
$crud->set_relation_n_n('Boxes', $this->config->item('db_prefix') . 'page_box', $this->config->item('db_prefix') . 'box', 'page_id', 'box_id', 'title');
This works fine in the sense that I can assign boxes to the pages IF I do have defined boxes, but, if you do not have any boxes defined, you get a message that says "Please add boxes first" or something to that effect. How about allowing addition of boxes via a popup, which then immediately becomes available for selection in the "Manage pages" screen? This would be an awesome addition, in my opinion!
Thanks!
Kobus