The method described here http://drupal.org/node/252276 to control the lightbox size breaks in views.
My use case is the following :
I'm doing a list of video formats you can choose from with views.
My fields are cck video fields.
I put this as "Rewrite the output of this field"
<a href="[field_video_quicktime_480_fid]" rel="lightvideo[|width:853px; height:496px;][© elephant studios]" title="[title]">480p</a>
and I use file url as format
But the lightbox doen't come up, the file url is used instead.
This works :
<a href="[field_video_quicktime_480_fid]" rel="lightvideo[][© elephant studios]" title="[title]">480p</a>
so I guess there might be a syntax conflict between views substitution patterns and [|width:853px; height:496px;] as they use the same brakets ? But again I'm not a coder so that doesn't make much sense to me.
Thanks for your attention
Comments
Comment #1
Jerome F commentedI found out that the html resulting in this rewrite is truncated :
rel="496px;][© elephant studios]"Comment #2
Jerome F commentedhttp://drupal.org/node/567918 gave me an answer too :
[ = %5B
] = %5D
Comment #3
Jerome F commentedHi I tested the brackets that way but that didn't work.
Anyway all this is not necessary as there is the lightbox trigger in views. And that works fine. I just had to learn how to use it and it gave me my answer.