? ajax_slideshow_view_args.patch
Index: ajax_slideshow.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ajax_slideshow/ajax_slideshow.module,v
retrieving revision 1.4.2.2
diff -u -p -r1.4.2.2 ajax_slideshow.module
--- ajax_slideshow.module	27 Feb 2010 09:16:32 -0000	1.4.2.2
+++ ajax_slideshow.module	29 Jun 2010 13:09:34 -0000
@@ -208,7 +208,14 @@ function ajax_slideshow_view() {
       sync_ajax => variable_get('ajax_slideshow_sync_ajax', true),
     );
     drupal_add_js(array('ajax_slideshow' => $js_settings), 'setting');
-    $tabs_view = views_embed_view('ajax_slideshow_view', 'default');
+
+    // Pass on the URL arguments to the view. This assumes that the first path
+    // argument is the slideshow path, and the other path args are for the view.    
+    $arguments = explode('/', $_GET['q']);
+    array_shift($arguments);  // Remove slideshow path
+    array_unshift($arguments, 'ajax_slideshow_view', 'default');
+    $tabs_view = call_user_func_array('views_embed_view', $arguments);
+    
     return theme('ajax_slideshow', $tabs_view);
   }
 }
