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

stella’s picture

Status: Active » Closed (duplicate)

Maybe 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

le_petit_basil’s picture

How 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