[CPS-users-fr] Suite: Intégrer DEWPLAYER au fichierjoint MP3

Hugo Lacasse pvp at videotron.ca
Dim 4 Juin 07:06:22 CEST 2006


J'ai trouvé une partie de ma solution... je dois intégrer le code dans le ficher widget_file_render.  Il me reste à apprendre à cibler ma source sonore pour l'application DEWPLAYER et que le tout s'applique seulement lorsque mes fichiers joints sont des fichiers MP3. Je suis rendu là. Est-ce que quelqu'un peut m'aider pour le petit bout qu'il reste?
------------------
Dans : widget_file_render 

  <tal:block condition="python: mode == 'view' and not empty_file">
    <metal:block define-macro="file_view">


(??faire en sorte que DEWPLAYER s'applique seulement pour les MP3??) 

<object type="application/x-shockwave-flash" data="dewplayer.swf?mp3=  (??cibler mon fichier attaché??) " width="200" height="20">
<param name="movie" value="dewplayer.swf?mp3=  (??cibler mon fichier attaché??)  "/>
</object>

      <a target="_blank" tal:condition="mimetype"
        tal:attributes="href string:${content_url}?nocache=${last_modified}">
        <img tal:replace="structure python:here.getImgTag(mimetype.icon_path,
          title=mimetype.name())" /></a>
      <a class="strong"
        tal:attributes="href string:${content_url}?nocache=${last_modified}">
        <tal:block replace="current_filename" /></a>
      <span tal:condition="size" class="note"
        tal:define="str_size python:here.getHumanReadableSize(size);">
        <tal:block content="str_size"/>
      </span>
    </metal:block>
  </tal:block>
-------------- section suivante --------------
Une pièce jointe HTML a été enlevée...
URL: http://lists.nuxeo.com/pipermail/cps-users-fr/attachments/20060603/08204054/attachment.html


More information about the cps-users-fr mailing list

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.