Skip to main content Help Control Panel

Login   A+   A-

Downloads «   Overlays «  

Share
Information channels
Recent files

"Wrapper" (iFrame) Overlay

avatarAngeli Axel -- on Dec. 2 2007
This is a simple overlay that takes a single URL and displays it within an iFrame.
Putting an URL into an iFrame is one of the killer features of Joomla. It allows the display of portlets within the portal frames, like it were an article.

This overlay does the same as the "Joomla Wrapper".

This is a first version. It needs some amelioration with respect to the sizing of the iFrame, especially the dynamic sizing of the frameHeight. Watch out for variables frameHeight and framewidth in the cod of the wrapper.php.

Files

Wrapper Overlay May2008 3,456 bytes, 162 downloads
I made some corrections to allow a better dynamic sizing.
Edited by Oxalagu on May 8
Zoom

Replies

Moi-meme
avatar
from Entre chaise et clavier...
Member
1436 posts
registered on Apr. 16 2006

on May 7


Hi

It's a fine overlay. Many people will use it, certainly.

Can we expect some screenshot, or more documentation about how it work ? Because "This overlay does the same as the "Joomla Wrapper"." is not very YACs compliant... ,)

-----
yacs-team.png
Plugin Firefox : Search (new)  
Nouvelles fonctions suggérées <- centralisation perso
l'atelier ordinaire des innovations

Oxalagu
avatar
Member
46 posts
registered on Apr. 7 2007

on May 8


Hi,

documentation would be an ambitious word for this tiny application.

Let me try to do some small tutorial for Overlays in general.

In fact the WRAPPER is the most simple use of the overlay and it does basically what "HelloWorld" would do. Instead of Writing HelloWorld it writes now into the overlay (in function get_text)

In function get_fields($host)

I added some fields, that will be schown in the page creation dialog and ask for the "wrapperurl"


// the external URL to put into the frame
$label = i18n::s('Wrapper URL');
$input = '';
$hint = i18n::s('The external page to be inframed');
$fields[] = array($label, $input, $hint);


please mind, that the data entered here needs to be parsed in :


function parse_fields($fields
Moi-meme
avatar
from Entre chaise et clavier...
Member
1436 posts
registered on Apr. 16 2006

on May 8


Thank you.

My request was based on the idea to complete the french manual at Embarquer une page externe dans YACs

-----
yacs-team.png
Plugin Firefox : Search (new)  
Nouvelles fonctions suggérées <- centralisation perso
l'atelier ordinaire des innovations

Tags: overlay wrapper iframe

Rate this page
Posted by Oxalagu on Dec. 2 2007, commented by Moi-meme on May 8, (popular)