[Solved] Open other site in content area

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Evert
Forum Members
Forum Members
Posts: 10
Joined: Sat Sep 15, 2007 7:59 am

[Solved] Open other site in content area

Post 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.
Last edited by Evert on Sun Sep 23, 2007 11:39 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Open other site in content area

Post 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
Evert
Forum Members
Forum Members
Posts: 10
Joined: Sat Sep 15, 2007 7:59 am

Re: Open other site in content area

Post by Evert »

Thank you, it works great ;D
marcelvdlans

Re: [Solved] Open other site in content area

Post 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?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: [Solved] Open other site in content area

Post 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
marcelvdlans

Re: [Solved] Open other site in content area

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [Solved] Open other site in content area

Post by Dr.CSS »

You have it set to _blank which means a new page, try self...

4.2: Competitiestanden
marcelvdlans

Re: [Solved] Open other site in content area

Post by marcelvdlans »

mark, thanks for your answer.

Where do I have set the _blank in? I mean, in which file?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: [Solved] Open other site in content area

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [Solved] Open other site in content area

Post 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...
User avatar
WarMace
Forum Members
Forum Members
Posts: 30
Joined: Tue Sep 25, 2007 5:15 pm

Re: [Solved] Open other site in content area

Post 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.

Image
Last edited by WarMace on Tue Sep 25, 2007 7:54 pm, edited 1 time in total.
truslack

Re: [Solved] Open other site in content area

Post by truslack »

Perhaps have the title as one word? Not sure.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: [Solved] Open other site in content area

Post by RonnyK »

It is the correct code, check with the HTML-button if no extra code is included in the logic.

Ronny
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [Solved] Open other site in content area

Post 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...
User avatar
WarMace
Forum Members
Forum Members
Posts: 30
Joined: Tue Sep 25, 2007 5:15 pm

Re: [Solved] Open other site in content area

Post 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}
Post Reply

Return to “Layout and Design (CSS & HTML)”