Custom Block with Lightbox Support

Permalink
Hi Folks,

I would like to build a custom Image Block with Lightbox Support. So far everything works great except the Lightbox Buttons next, Prev, Close are not showing up. I know the problem, but have no solution. My custom block resides in the /Blocks directory (/Blocks/MyCustomBlock/). The jquery script for the lightbox as well (/Blocks/MyCustomBlock/js) . Within the js folder I have a helper.js function which contains the call for the Lightbox. Now I try to overhand the correct relative path to this function with the following command:

$(function() {
   $("a[rel=lightbox]").lightBox(
   {
/*   
      imageBtnPrev: "http://localhost/basisinstall/blocks/image_caption/images/lightbox-btn-prev.gif",     
       imageBtnNext: "http://localhost/basisinstall/blocks/image_caption/images/lightbox-btn-next.gif",             
       imageBtnClose: "http://localhost/basisinstall/blocks/image_caption/images/lightbox-btn-close.gif",     
       imageBlank:    "http://localhost/basisinstall/blocks/image_caption/images/lightbox-blank.gif",         
*/
      imageBtnPrev: "<?php echo $this->getBlockURL()?>/images/lightbox-btn-prev.gif",     
       imageBtnNext: "<?php echo $this->getBlockURL()?>/images/lightbox-btn-next.gif",             
       imageBtnClose: "<?php echo $this->getBlockURL()?>/images/lightbox-btn-close.gif",     
       imageBlank:    "<?php echo $this->getBlockURL()?>/images/lightbox-blank.gif",         
      fixedNavigation: true
   });



As you can see I commented out some lines with the complete path which is actually working. Its not working when I want to get the path with the command $this->getBlockURL().

Why its not retrieving the correct path. I would like to keep the Lightbox effect encapsulated in my Custom Block, so everybody could use it later with its own themes.

Hope someone has an answer for me.

THX in advance.

dfuchs2512