Hey guys, im really new to drupal but not PHP. I have a gallery where I would like a pop-up window option, so visitors can focus on images. (Lightbox is an alternative of course).
I've 开发者_如何转开发added an if statement in my page-node.tpl.php, which states if mode=biggallery then execute this code, if not, run page-node.tpl normally.
I achieve what I wanted but im unsure wether its allowed :)
Thanks in advance
Look into using the Lightbox2 module, Modal API or something along those lines. It will keep you from having to inject code into the core tpl files.
精彩评论