-
Notifications
You must be signed in to change notification settings - Fork 5
Functionalities
There are two type of links that you can use, SEF (Search Engine Friendly) URLs or regular URLs.
The SEF URL is: http://www.yourwebsite.com/wrapper/ID/WRAPPERTITLE
- The ID and WRAPPERNAME are replaced with the ID of the wrapper and the title you have given to the wrapper.
- For example: http://www.yourwebsite.com/wrapper/1/google
The regular URL is: http://www.yourwebsite.com/e107_plugins/wrapper/wrapper.php?1
As of Wrapper version 1.4.0, you can also set an alias in the SEF URLs setttings. This allows you to change the word "Wrapper" in the URL.
You can include the Wrapper in any page you want, by using a shortcode.
The shortcode for Wrapper is: {WRAPPER id=x&pass=y}
- You can replace x with the ID of your Wrapper. IF you want to pass along data (see below) you can replace y with this data.
- Examples:
{WRAPPER id=1}
or{WRAPPER id=9&pass=q=dogs}
You can use this shortcode on any page, for example a custom page or menu created through the Admin Area.
Say you want to pass data through your iframe. This is possible by using the so-called "wrap_pass". Wrap will attach the string contained in wrap_pass (key1=value1&key2=value2) and add it to the src tag of the iframe.
This may sound rather vague, so let's illustrate this by means of an example:
- Say you want to include the google search engine, the URL is: "http://www.google.com/search",
- Say the ID of this wrapper is: 9,
You could then make a search on google for "dogs" by using this link: http://www.yourwebsite.com/e107_plugins/wrapper/wrapper.php?9&wrap_pass=q=dogs
This would load the google website within your wrapper, with a search enter for dogs. The URL that is loaded in your wrapper is: http://www.google.com/search?q=dogs