Fix for Code

  1. In the header of my view (using php input format):
  2.  
  3. <?php
  4. $view=views_get_current_view();
  5. print_r($view->args);
  6. print "\n";
  7. print "name: ".$view->name;
  8. print "\n";
  9. print "url: ".$view->get_url();
  10. ?>
  11.  
  12. When previewing the view with 16 (a taxonomy id) as the argument the header contains:
  13. Array ( [0] => 16 )
  14. name: image_gallery
  15. url: admin/build/views/nojs/preview/image_gallery/default/16
  16.  
  17. When accessing the view by it's display at imagegallery/16 (image gallery is the url of the page display) the view displays exactly the same nodes and fields in the view, only the header contains:
  18. Array ( )
  19. name: image_gallery
  20. url: image_gallery

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.