EE 1
EE 2
Redirect Plugin
Developer
3rd Party (Commercial)
Current Version: 1.2
Release Date: Jan 1, 2011
Buy Now!
Compatibility
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Better Workflow
- Matrix
Requirements
- jQuery for the Control Panel
Categories
Plugin
Tags
Basically if you place this into a template then you will be re-directed to the URL specified in the location parameter.
Plugin Usage :
This plugin is exceptionally simple to use. Place the following tag on any template as shown below :
Using full URL - useful for external sites.
{exp:redirect_to location="http://www.yahoo.com"}
or using paths instead - useful for internal links.
{exp:redirect_to location="news/detail/news_story"}
By default PHP redirection will be performed. If PHP redirection does not work,
use javascript redirection by adding method=“script” parameter.
{exp:redirect_to location="news/detail/news_story" method="script"}
If it is impossible by usual means to check if condition for redirection was met or not you can check it by wrapping the code expressing condition by
{exp:redirect_to}{/exp:redirect_to}
tags.
Redirection will be performed if the code wrapped by {exp:redirect_to}{/exp:redirect_to} tags will produce no output.
{exp:redirect_to location="my_template_group/my_template" method="script"}
{exp:query sql="SELECT title FROM exp_weblog_titles WHERE weblog_id = '5' AND url_title ='My title'"}
{title}
{/exp:query}
{/exp:redirect_to}
If you want that redirection would be performed on condition that certain output were produced, you should enter expected string as a value of “tagdata” parameter. Then the redirection will be performed if the string entered as “tagdata” parameter value and output of the code wrapped by {exp:redirect_to}{/exp:redirect_to} tags are identical. (Tabs, spaces and new line characters will be stripped.) In example below redirect will occur if {exp:query tag} will produce string “1”.
{exp:redirect_to location="my_template_group/my_template" tagdata="1" method="script"}
{exp:query sql="SELECT title FROM exp_weblog_titles WHERE weblog_id = '5' AND url_title ='My title'"}
{total_results}
{/exp:query}
{/exp:redirect_to}
Redirect Plugin Links
This entry was created October 3, 2008, 3:27 pm.
This entry was last updated June 27, 2011, 1:24 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!