2

This is probably really simple - but I can't find the answer...

We have set up a "Live Look Template" so that editors can preview an entry.

QUESTION

When an editor is logged in to the backend - Is there a way we can make the link going to this Live Look Template open in a new window?

I have circled the link I'm talking about...

enter image description here

3

I think the add-on Zenbu will open the live-look previews in a lightbox style modal if you wanted to use that. It's pretty good and gives you the ability to create custom views for entry lists.

However, you could create an accessory which hooked into the live-look links and used Javascript to open them in a new window. The difficulty is in hooking into the links since they don't have any kind of class on them.

You could look for the word "View" in a link or count which column the link is in and target that. Neither way is going to be bulletproof but it might work for your circumstances.

UPDATE: Just made an accessory for you. Download accessory to open Live Look links in a new window Unzip it into your expressionengine/third_party folder and install it from Add-ons->Accessories. This just looks for links with the word "View" so it's far from robust but it should do the job in a basic way.

| improve this answer | |
  • 1
    +1 for the accessory and +1 for Zenbu. – Romans-8---31-39 Oct 28 '14 at 16:34
  • Wow - that is so kind of you to make this. We have tested the accessory and it works great. In this scenario it is perfect for what we are doing. Thanks so much! – Jules Matthews Oct 28 '14 at 23:30
  • No problem. I've actually just updated the accessory so it hides the unnecessary tab at the bottom of the CP. – foamcow Oct 29 '14 at 9:43
  • Just updated the accessory and it's working great (and no tab). I owe you a beer. Thanks again! – Jules Matthews Oct 29 '14 at 22:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.