Hey there,
I got a little problem with the combination of views + lightbox and the "Rewrite the output of this field" option.
When I am using a code like this:
<a href="/node/[nid]?format=simple" rel="lightframe">[field_spielerbild_fid]</a>
It works for me without any problems, but when I am trying to add some sizing:
<a href="/node/[nid]?format=simple" rel="lightframe[|width:700px; height:273px; scolling:none;]">[field_spielerbild_fid]</a>
the lightbox wont open and I just get a blank page with the content.
Here you can find the page: http://bleischt-1.de/team
I added the folling code to the head of the view:
<script>
$(document).ready(function() {
$(".views-field-field-nodetitle-nid > .field-content > a").each(function() {
$(this).attr("href", $(this).attr("href") + "?format=simple");
$(this).attr("rel", "lightframe");
});
Lightbox.initList() ;
});
</script>I read this here: http://drupal.org/node/252260
But it wont work :(
Got any idea how to fix that?
Greetings from germany
SG