samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Better support for RSS #277

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Right now, when you insert a gallery into your post, you can style it an do 
pretty much whatever you want, however some blogs have a lot of RSS 
subscribers, and it would be nice to be able to have some control over how a 
gallery appears in the RSS feed.

By default the gallery will appears as a list in the RSS feed, this looks 
messy for the reader. Having the option to show gallery images in rows would 
make the gallery better in a RSS reader.

Original issue reported on code.google.com by suh...@gmail.com on 1 Mar 2010 at 4:21

GoogleCodeExporter commented 8 years ago
I wonder how you would control a feed... as IMHO it doesn't interpretate any 
CSS 
styles. Have you a RSS feed example ?

Original comment by alex.cologne on 1 Mar 2010 at 5:31

GoogleCodeExporter commented 8 years ago
Yes, of-course CSS would not be used in this case, what I'm suggesting is that 
instead 
of presenting the gallery as a list using <li>, which displays the gallery as a 
list of 
images (horizontally), you could have the option to present the gallery inside 
a 
paragraph tag, thus the images appear horizontal.

Yes there is an example of what I mean if you check out the engadget RSS feed 
(http://www.engadget.com/rss.xml), their gallery's appear horizontally since 
the images 
are wrapped in a paragraph tag 

Original comment by suh...@gmail.com on 1 Mar 2010 at 8:59

GoogleCodeExporter commented 8 years ago
Good link, but they didn't work with <li> if you look into the source code. 
Need to 
look where is the mistake , maybe a <br />

Sample form engadget :

<div class="postgallery">
<p>
    <strong>Gallery: <a href="http://www.engadget.com/photos/asus...">ASUS Eee PC 
1018P and 1016P hands-on</a></strong>
</p>
<a href="http://www.engadget.com/photos/asus...">
    <img src="asuseeepc1018pand1016p01_thumbnail.jpg" alt="" title="" />
</a>
<a href="http://www.engadget.com/photos/asus...">
    <img src="http:/asuseeepc1018pand1016p02_thumbnail.jpg" alt="" title="" />
</a>
<a href="http://www.engadget.com/photos/asus...">
    <img src="http://asuseeepc1018pand1016p03_thumbnail.jpg" alt="" title="" />
</a>
<a href="http://www.engadget.com/photos/asus...">
    <img src="http://asuseeepc1018pand1016p04_thumbnail.jpg" alt="" title="" />
</a>
<a href="http://www.engadget.com/photos/asus...">
    <img src="http://asuseeepc1018pand1016p05_thumbnail.jpg" alt="" title="" />
</a>
</div>

Original comment by alex.cologne on 1 Mar 2010 at 10:32

GoogleCodeExporter commented 8 years ago
I see... well from my blog the default code NextGEN outputs in the RSS feed is 
as follows (I've removed URL's):

<div class="ngg-galleryoverview" id="ngg-gallery-1-46"> 
  <!-- Thumbnails --> 
    <div id="ngg-image-1" class="ngg-gallery-thumbnail-box"  > 
      <div class="ngg-gallery-thumbnail" > 
        <a href="#" title=" " class="shutterset_set_1" > 
          <img title="gamesscreen_web" alt="description" src="image1.jpg" width="83" height="75" /> 
        </a> 
      </div>
    </div>
    <div id="ngg-image-2" class="ngg-gallery-thumbnail-box"  > 
      <div class="ngg-gallery-thumbnail" > 
        <a href="#" title=" " class="shutterset_set_1" > 
          <img title="gamesscreen_web" alt="description" src="image2.jpg" width="83" height="75" /> 
        </a> 
      </div>
    </div> 
    <div id="ngg-image-2" class="ngg-gallery-thumbnail-box"  > 
      <div class="ngg-gallery-thumbnail" > 
        <a href="#" title=" " class="shutterset_set_1" > 
          <img title="gamesscreen_web" alt="description" src="image3.jpg" width="83" height="75" /> 
        </a> 
      </div>
    </div> 
  <!-- Pagination --> 
  <div class='ngg-clear'></div>     
</div> 

Since the thumbnails are in their own div, which are themselves in another div, 
this causes RSS readers to display the thumbnails in as a 
column. This isn't a problem on a site, since we can style the div's to behave 
in whatever way we want, but presents a problem for 
readers viewing a gallery from an RSS feed.

Taking the engadget RSS feed as a starting point, NextGEN should output the 
following code to make the gallery more presentable in an RSS 
feed:

<div>
  <p>
    <a href="#" title=" "> 
      <img title="gamesscreen_web" alt="description" src="image1.jpg" width="83" height="75" /> 
    </a>
  </p>
  <p>
    <a href="#" title=" "> 
      <img title="gamesscreen_web" alt="description" src="image2.jpg" width="83" height="75" /> 
    </a>
  </p>
  <p>
    <a href="#" title=" "> 
      <img title="gamesscreen_web" alt="description" src="image3.jpg" width="83" height="75" /> 
    </a>
  </p>
</div>

Im not sure as to whether to strip out all the class's or keep them in, I 
suppose some users would prefer to keep the class's in the RSS 
in which case NextGEN would output RSS feeds like this:

<div class="ngg-galleryoverview" id="ngg-gallery-1-46">
  <p id="ngg-image-1" class="ngg-gallery-thumbnail-box">
    <a href="#" title=" "> 
      <img title="gamesscreen_web" alt="description" src="image1.jpg" width="83" height="75" /> 
    </a>
  </p>
  <p id="ngg-image-1" class="ngg-gallery-thumbnail-box">
    <a href="#" title=" "> 
      <img title="gamesscreen_web" alt="description" src="image2.jpg" width="83" height="75" /> 
    </a>
  </p>
  <p id="ngg-image-1" class="ngg-gallery-thumbnail-box">
    <a href="#" title=" "> 
      <img title="gamesscreen_web" alt="description" src="image3.jpg" width="83" height="75" /> 
    </a>
  </p>
</div>

Original comment by suh...@gmail.com on 1 Mar 2010 at 11:08

GoogleCodeExporter commented 8 years ago
Im not sure about this as I'm not familiar with the code, but does NextGEN 
output the same code in the RSS feed as it 
does in the posts a blog? 

If this is the case, then for RSS feeds NextGEN should output different code as 
styling classes and div's are 
(usually) not required in an RSS feed.

Original comment by suh...@gmail.com on 1 Mar 2010 at 11:13

GoogleCodeExporter commented 8 years ago
are you planning to let users customize their feeds?

and is that a problem to put only one image into the feed post?
my feed looks like links not to the gallery with new photo, but to the jpg-file 
directly.
and there's no preview in it

that looks not very good for me...

anyway thank you for the great plugin

Original comment by light...@gmail.com on 6 Apr 2010 at 7:29