开发者

Open an external link in an iframe page in Drupal CMS?

开发者 https://www.devze.com 2023-02-07 01:46 出处:网络
I am developing a news aggrega开发者_运维技巧tor site which gets rss feed links from other popular sites and displays in the site (http://news.anytime.in).

I am developing a news aggrega开发者_运维技巧tor site which gets rss feed links from other popular sites and displays in the site (http://news.anytime.in).

I would like to open those links in a iframe page with my site header for easy navigation. As on now, it directly goes to the targeted site. Is it possible to do like that?

Any advice?


Either you open the feeds in a Iframe, so if you open them they will stay in there, but you might have issues resizing your frame, or you have to add a target attribute to the feeds links with the name of an iframe already in your page (http://www.w3schools.com/TAGS/att_a_target.asp)


I don't know of an existing Drupal module for doing that, but here is a tutorial on Implementing an iFrame Toolbar. You should be able to add the necessary jQuery/Javascript to your theme or to a custom module.

0

精彩评论

暂无评论...
验证码 换一张
取 消