Opening AJAX Scroller articles in a lightbox

13 years 1 hour ago #6385 by vickipayne
I am using AJAX Scroller as an article scroller. I would like to open the articles in a lightbox (using JCE Mediabox). I have added class="jcepopup" to the generated article title link.

This works fine -- but only for the first article. The second and subsequent articles open on the same page, not in the lightbox. I have tried creating a template override of the Joomla article view default.php (since the subsequent article links have the class "contentpagetitle" which comes from Joomla files), but this override does not work, either. Do you know how I can achieve this? I do not want the article to open in a new window or on the same page.

Thank you, Vicki

Please Log in or Create an account to join the conversation.

12 years 11 months ago - 12 years 11 months ago #6387 by Saka
Hi,

If you want that to work on all items you must turn OFF AJAX. There is option for that in parameters. Just don't use it with large number of items.

For more background info see www.sakic.net/forum/ajax-series/lightbox...sue/msg5858/#msg5858

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

12 years 11 months ago #6388 by vickipayne
Thank you, Saka - what an easy solution, and it makes perfect sense.

The only feature I would like to have back is the looping of the articles (since with AJAX turned off I now just have a blank space after the last article). But if that can't be corrected, I am happy at least to have the lightbox working.

Thanks again for your wonderful support!
Vicki

Please Log in or Create an account to join the conversation.

12 years 11 months ago #6391 by Saka
Hi,

Please send the URL so I can see what you mean.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

12 years 11 months ago #6429 by vickipayne
I have found out that the blank space I mentioned above was due to some changes in the code that I made myself -- it is not the fault of the AJAX Scroller code. On a clean install it works perfectly.

But thank you, Mr. Sakic, for taking the time to look at it. I will remove the parts I added line by line and I should be able to get my issue resolved.

Vicki

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch