Image that will open in the same page

General discussions about WebYep
Post Reply
we_are
Posts: 1
Joined: Fri May 21, 2010 1:48 pm

Image that will open in the same page

Post by we_are » Fri May 21, 2010 1:51 pm

Hi Everybody,

I just had a little question.

I have this webyep image on a webpage. And when you click on it I do not want it to open a new page, but open in the same page.
Now I do not have the dreamweaver extension installed so I have to do all the codes by myself.

But somehow I can't seem to find out how to open the link in the samepage.

This is the code, can somebody tell me where I can adjust the target?
<?php webyep_image("Fieldname", false, 'class="Photos"', "some_other_page.php", "contentFrame", 70, 90, true); ?>

Thanks alot,
Lisette

johannes
Objective Development
Objective Development
Posts: 815
Joined: Fri Nov 10, 2006 4:39 pm
Contact:

Re: Image that will open in the same page

Post by johannes » Wed May 26, 2010 4:55 pm

The fifth parameter ("contentFrame") to the webyep_image() function defines the frame in which the page defined by the fourth parameter ("some_other_page.php") is to be opened.

So if you really want to open the page "some_other_page.php" in the same window, just change the code to:

Code: Select all

<?php webyep_image("Fieldname", false, 'class="Photos"', "some_other_page.php", "", 70, 90, true); ?>


By passing an empty string as the frame name, the page page will be opened in the same window.

Post Reply