I was looking for something similar and decided to try a silly workaround on a whim (I was sure it wouldn't work), and lo and behold! It works! So it is with pleasure that I present a super-simple, hack-free solution for creating menu items that open content in a lightbox and are still part of normal, dynamic joomla menus.
First, like corrado444, I use JCE Utilities for all my lightbox needs (highly recommended). So, I simply tried creating a Menu Item of type "external link", and then put in the path to the image I wanted to open in a lightbox in the 'Link' field (images/stories/your-image.jpg). I then put in the closing quote mark after the path, added a space, and then added class="jcebox (without the closing quote). Joomla then grabs that text and sticks it here: href="[link text goes here]".
So, put very simply, use this syntax for the Link field in your menu item:
Code: Select all
images/stories/your-image.jpg" class="jcebox
and Joomla will generate this html code for your link:
Code: Select all
<a href="images/stories/your-image.jpg" class="jcebox">
I still can't believe it works.