Hi,
to get a better understanding of leftandmain I'm making a module that allows for settings that will be 'sitewide'. Like the SiteTitle and Tagline, which will be settable through the admin from within a different panel and available on the templates through $SiteSettings.Tagline etc...
The module will also allow for 'custom' tags that will be set through a table.
All is going pretty well but I have 2 questions about using a tablefield.
1) Is there an easy way to grab the data from the table when saving - i.e a built in way to do it - or do I just grab the specific information from the $data array manually in my 'save' function?
2) When pressing 'delete' on the table I'm getting an error:
ERROR:Error 256: Form::callfieldmethod() Field 'CustomSettings' not found At l633 in D:\htdocs\ssmymodules\sapphire\forms\Form.php
I think this is about the first argument in my tablefield
$table = new TableField("CustomSettings", "SiteSetting", $tableFields, $fieldTypes,"", $filter);
But what do I need to put there then? - can't seem to get it working yet...
3) One small q:How do I make tabs open by default? - currently when pressing either of the menuitems on the left the tabs on the right stay closed until you really press the tab...