Page 1 of 1
html nugget links in article area
Posted: Sun Apr 02, 2006 12:12 pm
by rlauritsen
Hi,
I have some html links in a html nugget in the sidebar. When I click on them, they open and show alle over the Internet Explorer. I would like them to use the template I am using, and to only open where the articles normally open.
How do I fix this ?
Posted: Mon Apr 03, 2006 3:26 am
by judebert
External links are going to open in the entire window. The only way to keep things contained in a template is to use frames. Both users and sites generally hate this; we expect to actually go to the site we click, not surround it in your frames. As for sites, well... how would you feel if someone linked to your information, but surrounded it with his template and used his URL in the browser bar?
To make it work in frames, you'd need to modify the template so the articles went in a named frame, then modify the links in your HTML nugget to target that frame.
Posted: Mon Apr 03, 2006 5:12 pm
by rlauritsen
What if I would like some links myself in a html nugget? They should not open in the entire site. By the way, I know that it is possible to make it work, but I dont know how. I was hoping to get the help I need in here. On
www.voreshus.dk you can see some links in the menu area. They open in the site like all other article pages. How do I make this?
I always make external links open in a new window!
Posted: Mon Apr 03, 2006 5:33 pm
by Ianardo
It's actually quite easy to do this rlauritsen.
You can make links open in an iframe by installing the 'wrap url' plugin.
You type the URL into the plugin then you just need to link to the Permalink instead of to the external URL.
Posted: Mon Apr 03, 2006 11:21 pm
by rlauritsen
ok, now I have got an html page working with the IFrame, but it doesnt use the templates css file. Can I make it use the css of the joshua template? and the background color of the IFrame is white. It should also be like the joshua theme.
Posted: Tue Apr 04, 2006 12:36 am
by rlauritsen
It is much easier to use static pages plugin than iframe. Now it is working with the templates styles.
Posted: Tue Apr 04, 2006 4:16 am
by judebert
Ah, now I understand. Sorry I wasn't more helpful; I thought you wanted to use external links, not internal ones.
Although, as Ianardo already pointed out, there's an easier way to do that, too.