M2vH / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 0 forks source link

feature request: variable thumb selector #226

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes it is not possible to get the required html code for the thumbslist:
<div id="thumbs">
 <ul class="thumbs noscript">
  <li>
   <a class="thumb" ....

Often it is complicated to custom CMS oder others giving you this special html, 
mostly you have to create a plugin.

Wouldn't it be useful to use also customizable selectors, so you can use plain 
html or your own selectors.

I added new variables 'listContainerSel' and 'listThumbSel', so I could define 
this thumbs list myselfe.

For example I can use galleriffic on this crude CMS-generated list (its from 
dokuwiki):

<h1>some how</h1>
<ol>
 <li class="level1"><div class="li"> <a href="http://example.com/pix1.jpg" class="media" title="some" ><img src="http://example.com/thumb1.jpg" class="media" title="what.jpg" /></a></div></li>
...

...
 listContainerSel:   'h1 + div ol',
 listThumbSel:  'a'
...

Example http://castellum-vagantium.de/start

My modified script http://bit.umija.org/jquery/jquery.galleriffic.cascading.js

PS great stuff ;)

Original issue reported on code.google.com by vanG...@gmail.com on 3 Jul 2011 at 1:02