Any chance MMP could set the default image upload folder in the editor

Any chance MMP could set the default image upload folder in the editor

Reading about how MMP can set the folder for Random Image made me curious whether the "Image" button under a front end editor can be modified to open in a default subfolder that matches the alias of the current category. e.g. instead of $imagepath set to \images\stories
$imagepath = $imagepath . "\" . $categoryalias
to become \images\stories\current-category

Is the Image button plugin able to be modifed by MMP's universal impact if the plugin order is set correctly?

There's only 1 gotcha that I don't have time to solve properly. If you have Joomla built-in SEF enabled, and are viewing a category list or blog page and edit the article from there (rather than editing it from an article view page), then the category alias gets messed up. This is due to a bug in Joomla. So in that case the recipe above does NOT set the folder.

Best regards,
Stephen

Stephen BrandonMetaMod / Chameleon developerIf you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod