html nugget links in article area

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rlauritsen
Regular
Posts: 9
Joined: Sun Apr 02, 2006 12:07 pm

html nugget links in article area

Post 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 ?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
rlauritsen
Regular
Posts: 9
Joined: Sun Apr 02, 2006 12:07 pm

Post 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!
Ianardo
Regular
Posts: 114
Joined: Sun Nov 28, 2004 3:02 pm
Location: Hastings, U.K.
Contact:

Post 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.
rlauritsen
Regular
Posts: 9
Joined: Sun Apr 02, 2006 12:07 pm

Post 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.
rlauritsen
Regular
Posts: 9
Joined: Sun Apr 02, 2006 12:07 pm

Post by rlauritsen »

It is much easier to use static pages plugin than iframe. Now it is working with the templates styles.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
Post Reply