title: Get Fancybox to cooperate with Plone's News Item image
body: <p>I had a problem with Plone and Fancybox not playing nicely on News Items. So, for News Items, the image is uploaded directly with the content item and is stored at <code>http://yoursite.com/the-news-item/image</code>. The image is displayed with a default link to <code>/the-news-item/image_view_fullscreen</code>. </p>
  
  <p>I have Fancybox working on most other images fine, but couldn't get the .js to work with this image. My .js call looked like:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
      /* Simple image gallery. Uses default settings */
      $("a[href$='.jpg'],a[href$='.png'],a[href$='.gif'],a[href$='/image']").attr('rel', 'gallery').fancybox();
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>And I changed the default link to <code>/the-news-item/image</code>. With this method, the link remained as just a static link that opened up the image in a new page. </p>