Admiror Joomla! Community
http://www.vasiljevski.com/forum/

Galleries in content -> blog.php
http://www.vasiljevski.com/forum/viewtopic.php?f=38&t=1572
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
Code:
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:
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:
if(AG_jQuery(this).attr('id') == ){


So the gallery gets no id, as the gallery-HTML code always shows:
Code:
<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:
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
https://www.phpbb.com/