Hi,

Is there a way to ask the item list includelet to open external sites in a new tab/window? I can't see a way to specify how to open each one and I don't really want to take users away from our website. Or is there a better way to do this? I'm looking at this page in particular.

Thanks,

Jo

Posted by JoMaye on

Also, is there a way to copy an includelt from one page to another? I've realised I need to break our Online support page in to training, resources and forums but don't want to have to redo all the includelets if I can help it.

Posted by JoMaye on

The second part of my question about copy the includelets has been answered - it can't be done! :)

Posted by Joe Oldak on

It's true that you can't copy individual includelets, but you can clone or copy an entire page, including the includelets, then edit the copy. Which may or may not be easier than recreating the includelets on a new page!

(see the Clone/Copy buttons at the top of the Edit tab for a content page)

Thanks

Joe

Posted by JoMaye on

Hmm, when I clone the page, it doesn't clone the includelets. That was my original plan.

Posted by Joe Oldak on

Oh! Yes you're right, I hadn't realised that was the case.

I'll add this to the todo list, but for now it seems you're stuck with recreating the includelets by hand :-(

Joe

Posted by JoMaye on

Sorry, I sidetracked us. Is there a way to ask the item list includelet to open external sites in a new tab/window? Thanks :)

Posted by Joe Oldak on

We can do a JavaScript trick to get all redirect pages in Filtered Item Lists to open in a new tab/window, but there isn't a way to make this only happen if the redirect is to an external site. (the Filtered Item List doesn't know where the redirect is going)

The trick would be, in the Raw Header HTML in the theme settings for the site, add a script like this:

<script type="text/javascript">
$(function() {
  $('.teaser.redirect').find('a').attr('target','_blank');
});
</script>

What this is saying is: once the page has loaded, find all links inside teasers for redirect pages, and add target="_blank" to them all.

Hope that helps!

Joe