Display view nodes in lightbox? What would be the best way to show the nodes from a view in a lightbox, triggered by a single image?
The idea would be that a nice photo is shown on a frontpage. When users click on it, a view is opened in a lightbox/thickbox/colorbox/*box. This then shows all nodes in the view.

I currently manage to do this for only images with colorbox, but that's not sufficient as I would like to show captions etc.
I would like to use the full colorbox functionality, rather than just the image. I tried using an iframe, however this meant every node is shown with the full site theme (header, logo, footer etc) which is not what I want to do.
I managed in my project by using a custom page template and and an additional get parameter.

Template.php: (In active theme directory)

function phptemplate_preprocess_page(&amp;$vars){
    if( isset($_GET['ajax']) &amp;&amp; $_GET['ajax']=='true' ){
        $vars['template_files'][] = 'page-overajax'; # For Drupal 6
        $vars['theme_hook_suggestions'][] = 'page-overajax'; # For Drupal 7
    }
}


I then created a template file (page-overajax.tpl.php) in theme directory with following content:

&lt;div id="overlay-content-wrapper"&gt;
   &lt;?php print $content; ?&gt;
&lt;/div&gt;


After this (Clear all caches) you can use any path (page, view, node) with ?ajax=true to pass to your *box to load if it supports for AJAX content.

As using with fancybox: 

$("a.overajax").fancybox({
    'width': 400,
    'height': 400,
    ajax: {
        type     : "GET",
        cache    : false,
        url      : "user/user-posts?ajax=true",
        success: function(data) {
              $.fancybox(data);
        }
    }
});