Page 1 of 2
[Solved] Open other site in content area
Posted: Thu Sep 20, 2007 6:17 pm
by Evert
Hello, is it possible to open another site in the content area? So I want the header, menu etc. to stay in place and that in the content part an other (non CMSMS) site opens. This is where it has to be:
http://miracle.x10hosting.com/index.php?page=webshop
I find it a little hard to describe, but I hope you understand what I mean.
Re: Open other site in content area
Posted: Thu Sep 20, 2007 6:24 pm
by RonnyK
Evert,
you can use the {embed}-tag, or get the {pi_iframe}-tag from the dev-area.
Check the "Extensions -> Tags -> Embed -> Help", for the parameters.
This will create an iframe in which the external link will be opened.
Ronny
Re: Open other site in content area
Posted: Fri Sep 21, 2007 4:22 pm
by Evert
Thank you, it works great

Re: [Solved] Open other site in content area
Posted: Mon Sep 24, 2007 1:12 pm
by marcelvdlans
Indeed, it works great, but when i click on the link, a new window will be opened with the page?
example:
http://www.ttcv.nu/ under Competitie and then competitiestanden
What am i doing wrong?
Re: [Solved] Open other site in content area
Posted: Mon Sep 24, 2007 1:42 pm
by RonnyK
Marcel,
that's the purpose of the iframe, it opens the content of a link in the area where you put the link. If you want to link a menu-entry to an external page, that opens in another window use, the content-type = LINK instead.
Ronny
Re: [Solved] Open other site in content area
Posted: Mon Sep 24, 2007 2:56 pm
by marcelvdlans
RonnyK, thanks for your answer.
But I want the page within the content section without opening a new window, is that possible? If it is, how?
Re: [Solved] Open other site in content area
Posted: Mon Sep 24, 2007 4:58 pm
by Dr.CSS
You have it set to _blank which means a new page, try self...
4.2: Competitiestanden
Re: [Solved] Open other site in content area
Posted: Tue Sep 25, 2007 7:35 am
by marcelvdlans
mark, thanks for your answer.
Where do I have set the _blank in? I mean, in which file?
Re: [Solved] Open other site in content area
Posted: Tue Sep 25, 2007 7:46 am
by RonnyK
Marcel,
The content-type = LINK opens the link in a new page.
Reading your last post, I think you mean that you want a link inside the content-area, within the text.
To do so, you can type the text, select the part of the text that you want to become a link, and push the "Insert/Edit link"-button, which is the little chain in TINYMCE. The popup that opens, can hold the "Link URL", being the page to be opened, and the "Target", being the method of opening, there is the "Open in new window (_blank)" option.
The method Mark mentioned can be used as well. If you just copy/paste that code, a link will appear with those parameters given.
Ronny
Re: [Solved] Open other site in content area
Posted: Tue Sep 25, 2007 7:11 pm
by Dr.CSS
The one you have in your menu is from adding content and having as content type: link when doing this you are given options as to the Target: this is where you set, none, _blank, _parent, _self, _top...
Re: [Solved] Open other site in content area
Posted: Tue Sep 25, 2007 7:53 pm
by WarMace
I must be using the embed tag wrong because the below page opens a new window to the "Pawn" page on my site with no content in it.
I would like it to operate like the first posters site.

Re: [Solved] Open other site in content area
Posted: Tue Sep 25, 2007 7:59 pm
by truslack
Perhaps have the title as one word? Not sure.
Re: [Solved] Open other site in content area
Posted: Tue Sep 25, 2007 8:17 pm
by RonnyK
It is the correct code, check with the HTML-button if no extra code is included in the logic.
Ronny
Re: [Solved] Open other site in content area
Posted: Tue Sep 25, 2007 8:23 pm
by Dr.CSS
There is some more info you need to add to the metadata text area in Options, find it in the help for the embed tag Extensions > Tags...
Re: [Solved] Open other site in content area
Posted: Tue Sep 25, 2007 8:42 pm
by WarMace
Thank you Mark, I read up to the "Required" part then stopped, had I read further I would have seen the rest.
How do I use it?
Just insert the tag into your template/page like: {embed url=
http://www.google.com/}
Example to make the iframe larger
Add the following to your style sheet:
#myframe { height: 600px; }What parameters does it take?
(required)url - the url to be included
(optional)header=true - this will generate the header code for good resizing of the IFRAME.
You must include in your page content {embed url=..} and in the "Metadata:" section (advanced tab) you must put {embed header=true}. Also be sure to put this in between the "head" tags of your template: {metadata}