Hello,

We wanted to use Ajax Slideshow for a production site and unfortunately we were unable to make it working with a cloned view.

It seems that the javascript is calling the url photos/get/photos and that endpoint call ajax_slideshow_get_node_ajax() which is calling always the same view: ajax_slideshow.

That makes impossible to create a custom slideshow with a custom view and to export it.

Comments

udig’s picture

Hi Pol,

This use case never crossed my mind when developing the module. can't you custom the ajax slideshow view programmatically (hook_views_pre_view etc) instead of creating your own custom code?

pol’s picture

Hello udig,

I think all the modules config should be exportable... so we can have configuration stored into flat files and so we can have them versionned through the VCS.
Using hook_views_pre_view is maybe a good idea if your JS files do not rely on the same view and the same endpoint.
Maybe you should create a single unique endpoint in hook_menu() and pass in the view name when we call the service. You should also change your JS file to point to that endpoint and eventually, rename it.

Unfortunately, I have no time these days to do some Drupal coding or else I would have done it myself and provide a patch.

udig’s picture

Pol,
Thanks for bringing this requirement up and for the proposed direction.
Indeed supporting exportable view is a desirable functionality.
It will be added to the TODO list.
Should you be able to get back to it later on, or if someone else volunteers for the job - it would be great.