• Im using Version 0.9.9.3.4 of Frontpage Slideshow. I have a Slide Link set to an external site. I’m looking for a way to open this link in a new window. Is this possible? Any suggestions on how to make this work?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jeff_

    (@jeff_)

    it not implemented by default but you can create your own template by copying the actual into another folder then add the target="_blank" to the “fs-place-holder” element

    Thread Starter tompanton

    (@tompanton)

    That does in fact work. Unfortunately, what I need is a way to selectively choose which slides open in a new window.

    I guess I will need to figure out how to run a regular expression function on the fs-link parameter to determine if the link is an internal or external link. I’m okay with all external links opening in a new window. I’ll post the solution if I can figure it out (regular expressions are not my strength). If someone else is a regex wiz, please post a solution here.

    Thread Starter tompanton

    (@tompanton)

    I created a new template as Jeff suggested and modified the frontpageSlideshow function to test if the link is an indexOf the site’s URL. If it isn’t, then I added a target, “_blank” attribute to the link. Here’s the code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Frontpage-Slideshow] Open link in new window’ is closed to new replies.