Wow, I have to say that this is the greatest tool ever for me! The amount of time I have saved by implementing this is incredible!
I have a question, and am wondering on how to do the following:
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, but, for example, I would want the box position to change on a page basis, so, on the home page, the contact box must be in the second position, and on other pages, on the first position, therefore, I can not specify the position in the `box` table, but have to specify it in the `page_box` table. Is there a way to do this?
Thanks!
Kobus