Hello Cracks out there,

I just switched from Joomla to Drupal and I love it.
It really is so much better.
But I'm a little confused by all the modules out there.
Actually I'm looking for something like the wrapper in Joomal.
This module lets you show the content of an external page inside your cms.
I tried to do this with Full-HTML content on a page and added an IFRAME.
The funny thing is, that it is not always working. In most of the cases the node shows the compelte tags like

and not the content it should display.
Another thing is, that the wrapper of Joomla alows that if you click on a link inside the Iframe (dont kwow if it is one) the new content is also displayed inside the frame wihtout reloading the joomla. Maybe its an AJAX?

So, my question: Is there something like the Joomla-Wrapper also available in Drupal?

Thank you all for hepling,
gb5256

Comments

VM’s picture

This search may help with iframes
http://drupal.org/search/node/iframe

gb5256’s picture

Before I postet this topic, I have already serached this forum for Iframes.
All I found was not very helpful.
Looks like there is no module like the joomla-wrapper.
I will try to import hte joomla-wrapper to drupal.
Will let you all know what I discovered.

thanks to all,
gb5256

SomebodySysop’s picture

Did you ever import joomla-wrapter to drupal? If so, is it availble for download as a module?

shija03’s picture

I've been using Drupla for about a month, and I've been able to implement a joomla like wrapper by doing the following:

  • Install CCK Module
  • Install CCK Computed Field Module
  • Create your own content-type by using CCK Module
  • Add fields such as iframe_url, iframe_height, iframe_width, iframe_border_display... and anything else your heart desires for
  • Add a computed field (at the end of all other fields, so it will be able to render properly), which will take the values from iframe_url, iframe_height... and generate an output such as:
    <iframe src='[some_url_obtained_from:iframe_url]' ... />

The assumption is that you may know a bit of PHP - if you don't then you are out of luck - perhaps it would be nice if the CCK module could export its creations to become submodules, then I could have exported my content creator and people could use my creation.

Happy Holidays

Cory Goodwin’s picture

This works just like the Joomla wrapper. The below code will display Google. Clicking any links or doing a search will refresh the page inside the iFrame (ie: wrapper). Worked both in FF2 and IE7. I didn't test on any other browser.

I had to set a specific pixel height because when I put it to 100% it crops the iFrame very small. Not sure why, if anyone can lend input on this it would be appreciated.

  1. Create a new story, page, or whatever.
  2. Cut and paste the code below into the body of the content (view html or source if your using WYSIWYG editor)
  3. Input type should be full html
<p><iframe scrolling="auto" src="http://www.google.com" style="border-style: hidden; width: 100%; height: 600px;"></iframe></p>

Want to be successful playing no limit Texas Holdem cash games?

Brass Poker - blog written by a Las Vegas Poker Professional
thomas23@drupal.org’s picture

<?php
<iframe id="blockrandom"
name="iframe"
src="http://joomla.org"
width="600"
height="1024"
scrolling="no"
align="top"
frameborder="0"
class="wrapper">
This option will not work correctly. Unfortunately, your browser does not support Inline Frames</iframe>
?>

They do have a small java script function included in the same page that goes like this:

<?php
<script language="javascript" type="text/javascript">
function iFrameHeight() {
  var h = 0;
  if ( !document.all ) {
     h = document.getElementById('blockrandom').contentDocument.height;
     document.getElementById('blockrandom').style.height = h + 60 + 'px';
  } else if( document.all ) {
      h = document.frames('blockrandom').document.body.scrollHeight;
      document.all.blockrandom.style.height = h + 20 + 'px';
  }
}
</script>
?>

I actually ended up with

<?php
<p><iframe scrolling="no" src="http://drupal.org" style="border-style: hidden; width: 100%; height: 300px;"></iframe></p>
?>

No scrolling so -- paradoxically enough -- it will scroll (via mouse scroll wheel) since it is loaded in a div with height:370px; width: 630; overflow-x:hidden; overflow-y:auto; I don't really understand the scrolling bit but it works :) -- that is, without that js function needed.

Igbonine’s picture

Just subscribed.

TBolt’s picture

Thank you...this little line of code works beautifully in Drupal 6.8 and eliminated a huge pain in my arse. :)

<p><iframe scrolling="auto" src="http://www.google.com/" style="border-style: hidden; width: 100%; height: 600px;"></iframe></p>

MarcElbichon’s picture

I've created a filter permitting insertion of an iframe in a page.
If the source is in the same domain than de web server, auto height can be done if height parameter is 100%.
The syntax is :

[[[<url> width=<w> height=<h> scrolling=<yes|no|auto> className=<class> ID=<id>]]]
where only url is required.

If somebody is interested, i can import it in the module library.

jiongm’s picture

Thanks Marc. I'd be interested in having this.

MarcElbichon’s picture

I can't publish to Drupal CVS repository cause firewall restriction.
You can find the module (and others) at http://code.google.com/p/mmr-drupal-modules/wiki/insertFrame.

Contact me for any question or suggestion.

dvddecrypter’s picture

I followed the instructions (I think)

Made a new page and entered:

 [[[</forum/index.php> width=<500> height=<500> scrolling=<auto> className=<class> 
ID=<id>]]] 

I get a small box with the page inside itself (not my phpBB forum

???

VM’s picture

try using an absolute url = http://yoursite.com/forum/index.php rather then relative.

and with regards to the size, you must use px or em ie: 500px or 500em
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

MarcElbichon’s picture

remove < and >

Example :

[[[www.myurl/myapp width=500px height=500px class=myclass ID=id scrolling=auto]]]