Active
Project:
Dynamic display block
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Feb 2009 at 07:24 UTC
Updated:
8 Feb 2010 at 15:36 UTC
Currently all slides are loaded at once during page load, this works well enough for the display of popular lists or new content lists where you may only need a handful of slides. However, if ajax loading was used, it would allow a block to continually and elegantly feature random site content.
Would it be reasonable to have this functionality included at some point?
Thanks for reading.
Comments
Comment #1
ppblaauw commentedThanks for reporting.
To allow the dynamic display block module to display larger amount of slides, AJAX loading of new slides would be necessary.
This would be a nice feature to add to the dynamic display block module and we will try to implement this in the future.
Any help appreciated.
Comment #2
highvoltage commentedThanks ppblaauw, I always appreciate your quick responses. Looking forward to this functionality. ^_^
Comment #3
gunzip commentedsubscribe.
EDIT:
actually views support ajax loading. it's possible to obtain ajax loading of slides using the views2 pager
(ie. setting only 1 item to appear in the block). it would be nice to integrate this with ddblock to use
its styling etc.
Comment #4
asak commented+1
Comment #5
ppblaauw commented@gunzip, asak.
Any idea how to implement this in the ddblock module.
Any help appreciated.
I am first trying to implement ajax loading for the basic slideshow with images from a folder.
Will tomorrow post the code here I have till now.
Comment #6
gunzip commentedi think that it should be enough to use the views2 handle of ajax and just implement a custom pager (tpl) with something like this inside:
so the pager links are already computed by the view. just set the view to show only one item into the block.
i hope this is doable without touching the module code...
Comment #7
ppblaauw commented@ gunzip
Could you give some more details about your solution.
I can not see how this would get additional slides with AJAX after loading at least 2 initial slides which is required by the jQuery cycle plugin to work.
Comment #8
highvoltage commentedI think what he may mean is to use the already existing views pagination to switch slides. Create a view with random sorting and ajax paging, set the page to one, and then have DDblock initiate a 'next page' action. Let views pagination handle the slide switching, and just add in the visual effects/overlays, etc etc. Using views for pagination, wouldnt require loading two initial slide would it?... Anyway, I'm not a programmer so what I'm saying might be totally ignorant and useless, but i think that's the basic idea of the suggestion.
Comment #9
gunzip commented@highvoltage: right
maybe it's possible to use the 'after'/'before' properties of jquery cycle plugin to load the next slide from the view (it can be done even triggering the click event on the view pager link) before the animation. i'll look into this asak.
Comment #10
asak commented@gunzip: Sending you some good karma for this one... ;)
Comment #11
ppblaauw commentedTo inform you all:
What I am trying out now is using the onbefore function of the jcycle plugin, but still have some issues which I posted on the jQuery list.
I first have 2 initial images
after that, images are loaded with AJAX
The ajax call returns the image ok
The problem is that opts.currSlide and opts.Nextslide give strange values so the wrong images are selected.
When I look in FF console the post values for currSlide and nextSlide are.
0 - 1
2 - 1
2 - 3
4 - 1
2 - 3
4 - 5
I get the images in the PHP script on nextSlide +2
So i expect :
0 - 1 -> get image 3
1 - 2 -> get image 4
2 - 3 -> get image 5
3 - 4 -> get image 6
Another problem is I use slideExpr to select the right content to slide.
How can I you use addslide to add slides to the SlideExpr.parent
These are the issues I have, otherwise working.
Will later add this for advanced slideshow. After I get this working it will not be that difficult.
Comment #12
ppblaauw commentedTo inform you all:
Ajax loading of slides is working now on our testserver for the basic slideshow option of the dynamic display block module.
Will try to implement it now for the advanced slideshow option.
When this is finished and the documentation is updated will release a new version of the dynamic display block module.
Comment #13
asak commented@ppblaauw: you're amazing... ;)
Comment #14
highvoltage commentedNo kidding, great job. I was dying for ajax loading. This is highly appreciated. (b^_^)b
Comment #15
happydrupal commentedAwesome.........
Comment #16
joostvdl commentedSubscribing
Please let us know when it is available. This is a great new feature!
Comment #17
vacilando commentedWow! Subscribing!
Comment #18
dddave commentedMake this great module even greater!
Comment #19
doublejosh commentedsubscribing.
next... AJAX loading/refresh to get content created after the page was initially loaded. I know there is a way to trigger an AJAX view to refresh.
Comment #20
ppblaauw commented@doublejosh,
Thanks for your interest in the dynamic display block module.
The Ajax loading of slides is working with the module, but I am restructuring the module so more output side plugins can easily be added to the module. After this is finished I will release a next version of the module.
(I can not spend so much time on development at the moment.)
If you have suggestions for loading slides after initial page view please let me know.
Comment #21
mrfelton commentedsubscribing. So, is this functionality is in CVS?
Comment #22
ppblaauw commented#21, no it's not published.
Comment #23
TimG1 commented+1 and subscribing!
I wish I could offer more help on the programming side of things, but lack those skills. But, a similar module out there uses ajax loading. www.drupal.org/project/quicktabs . Maybe there is some way to use what that project has done?
Comment #24
ibis commentedsubscribing