Making links that open in the same page

  • 1
  • Question
  • Updated 10 years ago
  • Answered
I want to add a link in a column (in a two column layout) that opens in the other column, how can i do that?

Thanks in advance!
Photo of Maxdm

Maxdm

  • 1 Post
  • 0 Reply Likes

Posted 10 years ago

  • 1
Photo of Monique

Monique, VP of Customer Support

  • 6294 Posts
  • 446 Reply Likes
Hi Maxdm

There isn't a straightforward way to do this that I know of.

However, I have asked one of our developers to see if they have any suggestions for you.

Cheers,
Monique
Photo of Awesome-O'Sean

Awesome-O'Sean

  • 58 Posts
  • 9 Reply Likes
Hi Maxdm,

I've created a simple solution to your problem, but even so, it does require a little coding to get the results you want.

1 ) Create two pages, drag a two column layout in the one and nothing in the other. Name the one with the two column layout anything you like, name the other one "test".

2) Drag and drop an html widget into the left column of the two column layout and paste the following code into it:

<script type="text/javascript">
function goPage(page){
document.getElementById('fcontent').src = page + '.php';
}
</script>

<a href="javascript:void(0);" onclick="javascript:goPage('test')">test</a>
<br />
<a href="javascript:void(0);" onclick="javascript:goPage('test2')">test2</a>

3) Drag and drop another html widget into the right hand side column of your two column layout and paste this code in it :

<iframe id="fcontent" name="frame" src=""></iframe>

4) Save your page and preview it.

You should see the "test" page open up in the frame on the right hand side of you two column layout if you click on the "test" link and a page not found error if you click on the "test2" link.

This will give you a starting point to what you are trying to achieve.

To find more information about using iframes take a look at
http://www.w3schools.com/TAGS/tag_ifr...

Hope this helps, let us know if you need more info.

Sean