I have just uploaded a new version of the Attachment plugin (version 1.1.1).
The plugin now allows you to add custom fields to the Attachment tables, e.g. a more detailed description or whatever your heart desires.
When you add a field, you have to add the field to two tables, namely to TempAttachment and to LinkAttachment. You have to obey the following naming conventions: call the field in the TempAttachment table 'tempatt_xxxxx', where 'xxxxx' is your choice. Then, in the LinkAttachment table, you have to call the field 'linkatt_xxxxx', with 'xxxxx' the same as in the TempAttachment table.
You can then add a new input field in the "include_attachment_form.html" template. The name of the input field should be 'xxxxx', i.e. as above.
Note: the custum fields will not show up in the admin area yet. I have to rewrite some of the admin code for more flexibility (too many things are hardcoded at the moment). I'll keep you informed.
Ivan
-----
Iyengar Yoga Resources / GT Plugins
The plugin now allows you to add custom fields to the Attachment tables, e.g. a more detailed description or whatever your heart desires.
When you add a field, you have to add the field to two tables, namely to TempAttachment and to LinkAttachment. You have to obey the following naming conventions: call the field in the TempAttachment table 'tempatt_xxxxx', where 'xxxxx' is your choice. Then, in the LinkAttachment table, you have to call the field 'linkatt_xxxxx', with 'xxxxx' the same as in the TempAttachment table.
You can then add a new input field in the "include_attachment_form.html" template. The name of the input field should be 'xxxxx', i.e. as above.
Note: the custum fields will not show up in the admin area yet. I have to rewrite some of the admin code for more flexibility (too many things are hardcoded at the moment). I'll keep you informed.
Ivan
-----
Iyengar Yoga Resources / GT Plugins