Author Topic: Opening AJAX Scroller articles in a lightbox  (Read 797 times)

vickipayne

  • Newbie
  • *
  • Posts: 3
    • View Profile
Opening AJAX Scroller articles in a lightbox
« on: 22 November 2011, 15:18 »
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

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,495
    • View Profile
    • Sakic.Net
Re: Opening AJAX Scroller articles in a lightbox
« Reply #1 on: 23 November 2011, 13:13 »
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 http://www.sakic.net/forum/ajax-series/lightbox-effect-issue/msg5858/#msg5858
« Last Edit: 25 November 2011, 08:45 by Saka »

vickipayne

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Opening AJAX Scroller articles in a lightbox
« Reply #2 on: 23 November 2011, 16:17 »
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

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,495
    • View Profile
    • Sakic.Net
Re: Opening AJAX Scroller articles in a lightbox
« Reply #3 on: 25 November 2011, 08:48 »
Hi,

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

vickipayne

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Opening AJAX Scroller articles in a lightbox
« Reply #4 on: 07 December 2011, 19:55 »
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