Any quick way to add target _blank to URL for a gallery item URL? Don't want to alter the snippet to always do it - I just have one image that needs to link into a new window rather than current. Its probably simple - just me being a bit dim...
Cheers
-
☆ A M B ☆
- 894 Posts
What I've done is use the gallery item tags field to insert if I want it to open in a blank page so in your tpl do something like this:
<a href="[[+url:is=``:then=`[[+image]]`:else=`[[+url]]`]]" [[*tags:!empty=`target="[[*tags]]"]]`>
<img src="[[+thumbnail]]" alt="[[+name]]" />
</a>
So if you want your link to open in a new page you would type in _blank in the tags field, it the tags field is empty it doesn't render the target attribute.
Hope that helps, good luck.
Hey, does anyone know why in MODULES GALLERY where I frequently move around the order of JPEGS, this TIP: "You can select multiple files with CTRL and SHIFT combinations" doesn't work? I have to drag each JPEG one by one to re-arrange then update their order and it is a huge time suck. Why offer the tip to move multiple JPEGS at one time when it doesn't work? Thanks for any guidance here. I am a designer not a developer. jane
-
☆ A M B ☆
- 894 Posts
@PhilW look into changing the nivoRowTpl chunk which is the template it uses for image links if I'm not mistaken.
Good luck.