Gossamer Forum
Home : Products : Links 2.0 : Customization :

Problem passing 'Delete upload?' checkbox to admin

Quote Reply
Problem passing 'Delete upload?' checkbox to admin
What I am trying to do is have a checkbox in the modify form that when checked, lets the admin form know that it has been checked, so the admin can verify the deletion. (Easy enough to have file deleted at time of modify form submission, but I don't want it done from there.) This checkbox is just to say "I want to delete the upload" and is not a field in links.def that can be yes or no, as it is transient info. The problem I am having is getting the info transferred to the admin, since it cannot be accessed via $rec; it is only %in type data.

I have adapted JPDeni's multi-file upload mod to Links2, wherin the image names are not stored in the links.db file, but are accessed by checking if a certain directory exists, then getting its contents. This is making the checkbox more difficult. I might look into having the file names saved to new links.db fields, which would actually make them much easier to manipulate.

Thoughts?

Hope it's not just more code blindness... Unimpressed


Leonard
aka PerlFlunkie