External Web Link

We love the new external web link feature, but we have a specific project that requires some of our links to open in the same window instead of a new window. Is there a way we can edit the published package so that some of our links open in the same window?

Comments

  • t_johnb
    t_johnb Community Member Posts: 294 ☆ Roadie ☆
    If you want to change out the current windows contents, effectively exiting the scenario, you could use the JavaScript notifications that are detailed here:

    https://cenariovr.com/blog-posts/communicating-between-cenariovr-and-other-content.html

    Basically, you'll need to "catch" the notifications in script in the outside frame that is hosting the content, and then change out the current window contents.
  • carlfink
    carlfink Community Member Posts: 1,099 ✭ Legend ✭
    Have you considered adding a feature like what Second Life has, where a web page can be displayed in a frame within their VR environment? I suspect that's what Heather is looking for.
  • hmiller3390
    hmiller3390 Community Member Posts: 6
    That would also be a cool feature that I'm sure we could use in other projects.

    For this project, we have created a virtual tour and to keep the published file size down, we built each tour location as a separate Cenario file. We uploaded the separate published files for each location to a web server (so each location is a separate external web link).

    We have hotspots in the tour that allow users to navigate to a specific tour location (the external web link to the published Cenario file). When it opens in a separate window, their previous location tab(s) remain open, so we really want to set it to open the new location in the same tab.
  • t_johnb
    t_johnb Community Member Posts: 294 ☆ Roadie ☆
    You definitely will be able to use the JavaScript notifications to do that then. Just catch the notification for a click on a hotspot that you want to change the URL, and set the URL in your script.
  • hmiller3390
    hmiller3390 Community Member Posts: 6
    Great - thank you so much for your help!