// ################ TODO: see getUploadedMediaForContent
//we most likely need further info
upMedia = mediaStorage.selectById(upMedia.getId());
- try {
- // ############### ditto
- String url = mediaHandler.getListView(upMedia, mediaType);
- //upMediaSimpleHash.put("url", url);
- upMedia.setValueForProperty("url", url);
- theLog.printDebugInfo("url is "+ url);
- }
- catch (Exception ex) {
- throw new TemplateModelException(ex.toString());
- }
// putting media in the apropriate list container
if (upMedia.getValue("is_published").equals("1")) {