All the database scripts have been correctly (I believe) modified. The module has been successfully installed, and appears as an available module at the top of the admin page.
I can add the module to the page just fine. And I can open the edit control/page, which does indeed display correctly. The problem is that when I click the update link, it will always generate a new record in my module table, instead of updating the existing record.
In spite of all my attempts, the ItemID is always -1, and therefore the edit control/page bypasses the code that would update the existing record.
I need to know the correct procedure for creating an edit link that will pass the ItemID to the edit page. The procedure shown in several documents, and as used by the Events module, is to add the following to the view control/page:
When I try this, I recieve the following error: "MinMax persistance type of cookie requires a ModuleId". Any attempt to reference the EditURL method from the view control will generate this error. Even if I replace the call to DataBinder.Eval with an empty string.
I've also attempted to add the following code to the ModuleActions property of the view control:
Actions.Add(this.GetNextActionID(), "Edit PhotoBanner", ModuleActionType.EditContent, "Edit", "", this.EditUrl(), false, SecurityAccessLevel.Edit, true, false);
This results in a new "Edit PhotoBanner" option appearing in the module drop down menu, but the edit control/page still doesn't recieve the ItemID on the querystring. Therefore, its function is to add a new module instance, instead of editing the existing instance.
I hope this clarifies the nature of the problem.
Thanks.