1. Summary of Background issue: You are currently unable to pass parameters/variables to an item in a wrapper without the addition of custom php code to the wrapper component. I would like to request the addition of the ability to pass parameters/variables to the Wrapper via a URL. I believe that this would be beneficial as part of the core project itself.

There are many times when a link to a wrapper menu item is used in a content item that may need a specific value passed to through the wrapper to the form. It may be a value specific to the content item itself that doesn't warrant it's own menu item, but simply data required by the form in the wrapper itself.

An example of the usage of this functionality would be a form in a wrapper which requires parameters/variables to be passed to it in order to execute a specific way. Depending on the parameters/variables passed to the form, it may display specific fields and email a specific recipient.

2. Overview of Functional Requirements: Have the Wrapper component parse the URL for any passed parameters/variables that are used in the URL.

3. Thoughts on Proposal: This should not affect backward compatibility or change the UI such that training would be required. This would simply allow parameters/variables to be passed through the wrapper via an URL.

You may have to remove the folder /components/com_wrapper to install it but it is really worth it. It cost me some time to figure out how to set the wrapper link in a menu but finally my script is fully included in my Joomla website.

[Jeb] wrote:3. Thoughts on Proposal: This should not affect backward compatibility or change the UI such that training would be required. This would simply allow parameters/variables to be passed through the wrapper via an URL.

I think this is a good point for this white-paper, also thinking of a component such as the wrapper one as a little limited by the need of new "power & flexibility" like joomla is...

I'm a newb with Joomla so apologies if everyone already realises this but I've had the same problem - trying to pass parameters into the wrapper. After trying to understand component layouts etc, I've modified

You can then go to the wrapper declaration on the menu and provide 3 parameters to be passed through to the iframe - i.e. "email" and "ticket" could be 2 of the parameters so that when the iframe (wrapper) is created it will retrieve the value of these 2 values from the url.

hi there. In fact I modded the wrapper slightly again to remove the requirement to modify the xml - everything is done in the php script now. In the default.php I just looped through all the GET elements on the URL and passed them straight into the iframe url - after all, if they arent needed, the script running in the iframe would ignore them anyway and this makes for a much simpler mod.

Written by Thomas Kahl
Have you ever needed to pass different parameters to your "wrapped" script?
Here is a flexible solution, which should work with all Wrapper-Items in mambo 4.5.1 & 4.5.2:

1. Make a backup of the file /components/com_wrapper/wrapper.php
2. Open the file in an editor and go to line 35.
3. Search for this text: $url = $params->def( 'url', '' );
4. Insert the following block AFTER the line:

Thank you very much for this solution! I use it on a multi lingual (JoomFish) site where visitors are asked to fill out a custom made (php) form. Now the Joomla language variable "lang=.." is passed neatly to the form, so the visitors will see it in the appropriate language. And I can think of many more uses.

I think this is what I need but i don't understand it. Will this allow me to modify the wrapper so I can zoom in or out of the page? Like if i have a wrapper as my main content with out anything to the LEFT or RIGHT of it, it will view one way.

But if i have a modual next to the wrapper i would like for the wrapper to scale the content so everything fits in the frame without any scrollbars.