[Solved]Lightbox link in search engine
Hi,
I edited the search_default.tpl so links open in a lightbox/mediabox.
The problem is, if I add rel="lightbox[943 75%]" in the link, all the results get treated like a gallery so pressing left and right arrows go to the next result within the lightbox. I don't want this to happen. How can I get links to open in a lightbox at a set size without left and right arrows switching links? Just putting rel="lightbox" means the lightbox opens quite small.
Thanks
Re: Lightbox link in search engine
try with:
Code:
rel="lightbox[something 943 75%]"
Re: Lightbox link in search engine
Why do you put the "rel" attribute twice in your anchor element?
Re: Lightbox link in search engine
Ah, that was a mistake.
I tried adding a word but that didn't work. Maybe I need to have a random string for each link generated with a little php.
I thought adding the a word in the [ ] made it part of a gallery.
Just putting rel="lightbox" means that the links are single items.
[solved] Lightbox link in search engine
I've acheived what I wanted to.
I used this line instead.
Code:
rel="lightbox[a<?php echo mt_rand(1,9999); ?>a 945 75%]">
I added letters either end because the at first I just used the linkid but a couple of links still appeared as a gallery when number was a2 and a20