Galleries in content -> blog.php

Admiror Gallery 5.x.x for Joomla 3.x. support forum.
Post Reply
Message
Author
samtun
Posts: 1
Joined: Fri Aug 28, 2015 9:47 am

Galleries in content -> blog.php

#1 Post by samtun »

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

Code: Select all

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:

Code: Select all

Uncaught SyntaxError: Unexpected token )
for every gallery on the page each.

this refers to lines like this in the js-code the gallery adds:

Code: Select all

if(AG_jQuery(this).attr('id') == ){
So the gallery gets no id, as the gallery-HTML code always shows:

Code: Select all

<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

Code: Select all

echo JHTML::_('content.prepare' ... 
?

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

Admiror Gallery 5 - Fundraising Campaign

Post Reply