Hi;
I managed to implement the Gallery Add-on with some modifications to include the jquery Galleria.
The process was relatively easy, congrats for the awesome work at this Add-On from the author.
But even the gallery seems to be working good, i’m getting an Error in the Console:
[2011-02-17 09:37:39] (ERROR @ /index.php) Instantiated a derived class galItem that is not a subclass of the requested class galAlbumItem
I have 3 galleries up and running, and the error seems to be showing once for each gallery every time i hit the listings page.
This tells me im using some not loaded class in the code that generates the listing Items (each gallery Title, Thumbnail) since the error is showing 3 times in a row when i hit the page.
Here’s the code in my resource:
[[!GalleryAlbums@Galerias? &toPlaceholder=`galleries`]]
[[!Gallery? &toPlaceholder=`gallery` &linkToImage=`1`]]
[[!GalleryItem]]
[[!+gallery:is=``:then=`
<div class="galeria_ct">
<div class="ct_fotos">
<ul>
[[+galleries]]
</ul>
</div>
</div>
`:else=`
<div id="galleria">[[+gallery]]</div>
<script type="text/javascript">
Galleria.loadTheme('/js/gallery/src/themes/classic/galleria.classic.js');
$('#galleria').galleria({height:500, debug:false});
</script>
`]]
I’ve used the examples in the Documentation and extended from there to adjust to my needs.
Also updated galAlbumRowWithCoverTpl to fit the html structure i needed.
<li>
<a href="[[~[[*id]]? &[[+albumRequestVar]]=`[[+id]]`]]" title="[[+name]]">
<img width="100" height="100" src="[[+image]]" alt="[[+name]]" />
<span>[[+name]]</span>
</a>
</li>
What do you think im doing wrong to get this error?
(Note galleries are working good).