I would like to suggest theme()ing the output of filestore2_view(..). This would allow much greater flexibility in module useage. I've seen many requests for a basic multimedia storage/playing web application. I think, in lieu of having a module that is specifically designed to manage and render all of the various multimedia formats, that simply themeing the output of filestore2 would open the door for many such web sites.

Themeing filestore2 output would allow such output as the following:

theme_filestore2_view(&$node, $main = 0, $page = 0) {
  switch($node->mimetype) {
    case "audio/mp3":
      $output .= "html to allow users to play mp3 file inline on the page"
      break;
    case "video/avi":
      $output .= "html to allow users to play avi video file inline on the page"
      break;
    case "someother/format":
      $output .= "html to allow users to render files in a format-specific way on the page"
      break;
    default:
      $output .= "default filestore2 output"
  }
}

Comments

gordon’s picture

Assigned: Unassigned » gordon

I did have something like this in filestore2, but what it did was actually call theme("page") so that by default it would use the normal node view, but would then allow you to add a theme if you wanted.

I had to take it out as I had a problem with filtering, and I need to get it back in.

apaderno’s picture

Version: 4.5.x-1.x-dev » master
Assigned: gordon » Unassigned
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue as it has been created for a version that is now unsupported.