Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-1848

Bad url when add an image to a weblog

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.0
    • 5.0
    • None
    • Ubuntu 2.6.28-16 64bits

    Description

      When we add an image to a weblog (in edition mode), the mediaLink url doesn't appear.

      The issue is to modify MediaFileImageChooser.jsp by this :
      <s:iterator id="mediaFile" value="childFiles">

      <li class="align-images"

      onmouseover="highlight(this, true)" onmouseout="highlight(this, false)">

      <s:url id="mediaFileURL" includeContext="false"

      value="%

      {#mediaFile.permalink}

      "></s:url>

      <s:url id="mediaFileThumbnailURL"

      value="%

      {#mediaFile.thumbnailURL}

      "></s:url>

      <div class="mediaObject"

      onclick="onSelectImage('<s:property value="#mediaFile.name"/>','<s:property value="%

      {mediaFileURL}

      " />')" >

      <s:if test="#mediaFile.imageFile">

      <img border="0" src='<s:property value="%

      {mediaFileThumbnailURL}

      " />'

      width='<s:property value="#mediaFile.thumbnailWidth"/>'

      height='<s:property value="#mediaFile.thumbnailHeight"/>' />

      </s:if>

      </div>

      <div class="mediaObjectInfo">

      <label>

      <str:truncateNicely upper="50">

      <s:property value="#mediaFile.name" />

      </str:truncateNicely>

      </label>

      </div>

      </li>

      </s:iterator>

      </ul>

      </div>

      <div style="clear:left;"></div>

      </s:form>

      </s:if>

      <script type="text/javascript">

      <!--

      function onSelectImage(name, url) {
      if(url.match("^" + url) == url)

      { window.parent.onSelectImage(name, url); }

      else

      { window.parent.onSelectImage(name, '<s:property value="absoluteSiteURL" />' + url); }

      }

      -->

      </script>

      Attachments

        Activity

          People

            djohnson David Johnson
            babar Nicolas BONAMY
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified