Admiror Joomla! Community

Galleries in content -> blog.php
Page 1 of 1

Author:  samtun [ Fri Aug 28, 2015 9:57 am ]
Post subject:  Galleries in content -> blog.php

Hi everybody,

I made a little modification to joomlas blog.php and blog_item.php, loading Admiror Galleries for each article in the blog.
I did this via
echo JHTML::_('content.prepare', '{AG}'.$gallery_str.'{/AG}');
in the blog_item.php.

On any other page the gallery works fine and it does also work on the blog page, but there are errors in the js saying:
Uncaught SyntaxError: Unexpected token )

for every gallery on the page each.

this refers to lines like this in the js-code the gallery adds:
if(AG_jQuery(this).attr('id') == ){

So the gallery gets no id, as the gallery-HTML code always shows:
<div id="AG_0" class="ag_reseter AG_classic">

(The id is always 0)

Is there anyway to fix this?
Do i load the gallery wrong with
echo JHTML::_('content.prepare' ...

Like I said the gallery is working fine, but I would like to get rid of those errors.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group