I am adding the ability to upload content from a file to static-portlet (client request) and thought it would be "fun" to convert it to ad_form while I was at it. I have it working, and even mananged to consolidate the separate new and edit features into one set of files, but I'm stuck on a couple of things:
I'm using content_id as my key. This works, in the sense that it leads the code to use the right block (edit or new). But I'm not using the value that's being generated for me. New static portlets are created by a call to static_portlet_content::new, which returns the id of the new object. Yes, I know there's no double-click protection here but only admins can do this and I don't really have time to rewrite the entire package (this was enough of a diversion).
So, given that I'm not using the value and a number in the acs_object sequence is being wasted, how bad is this? Bad enough to not use the key management feature at all?
When editing an existing portlet I'd like to be able to use it's title in the page template, but it's not available outside the form. Is there any way to get at it besides pulling it from the database a second time?
Thanks in advance!