Active
Project:
Ajax Slideshow
Version:
6.x-3.0
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2011 at 07:47 UTC
Updated:
28 Jun 2011 at 05:15 UTC
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
Comment #1
udig commentedHi 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?
Comment #2
polHello 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_viewis 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.
Comment #3
udig commentedPol,
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.