Support » Plugin: Custom Content Type Manager » [Plugin: Custom Content Type Manager] Media uploader functionality missing

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor fireproofsocks


    Good question — It was a long and difficult road to get even the partial uploader there because the core WP code was very poorly architected. Apparently, t was not built to be reused — much of it was hardcoded throughout the admin pages. If you need to edit image details, I’m afraid the best way to do it is to do it via the Media library menu.

    Thanks for the reply, but, since the one called up by the field is different to the normal uploader, surely you’ve already changed the uploader? Is it not possible to change the call so that you don’t make any changes to the standard uploader? If you could point me in the direction of where (and how) to change the code I can add the hack myself if you don’t want to change the way CCTM works (and on my head be it!)


    Plugin Contributor fireproofsocks


    No, I really didn’t change much in the uploader — I just figured out a way of pointing to it by hijacking the javascript. Only part of the WP code is reproduced in the upload variation — as I recall, the handler was not easily isolated. It was tough, but if you want to look into it further, be my guest.

    This post was useful:

    In the code, look at the js/relation.js file, specifically the cctm_upload() function — you can see how I had to forcefully override the send_to_editor() function so I could do something useful with the output, then after doing my business, I had to replace the function. It’s just icky, but that’s the only way I could reuse the code for the uploader.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Custom Content Type Manager] Media uploader functionality missing’ is closed to new replies.