Closed (duplicate)
Project:
Lightbox2
Version:
6.x-1.9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2009 at 22:28 UTC
Updated:
9 Sep 2009 at 19:05 UTC
I have created a CCK field which is a simple text field which contains HTML to display a java applet. The questions is how can I get lightbox to display the content of this field? I'm thinking along the lines of modifying the content-field-field_javaapplet.tpl.php but I'm not sure how ligthbox can be called to display the contents of field.
Any ideas?
Many thanks in advance for any help!
Benc
Comments
Comment #1
stella commentedMaybe try out the patch at #474454: Views lightbox2 custom field handler (update). I'd appreciate more testing of that patch and it sounds like it may solve your problem.
Cheers,
Stella
Comment #2
le_petit_basil commentedHow about ...
creating a view that shows only the specific field you want, in a specific content type, with an arg for the specific nid of the node you want.
Then, give that view a page view, and specific path / alias, somecustomview, for example, and pass a nid argument ... so
www.example.com/somecustomview/nid.And then ... make a custom page template for that page, page-somecustomview.tpl.php, let's say, that strips out everything except a bare bones wrapper for the html that you want to display.
Then, you set the link that triggers your lightbox to something like
<a href="/somecustomview/$someVarNameForYourNID" rel="lightmodal">Click me to see stuff</a>Cheers,
A