i am using Joomla 2.5 inbuilt registration Form .i need to redirect to 2 different pages after different type of user log-in .Can this possible ? .Now my log-in menu redirecting every user to one constant page After successful log-in .
2 Answers
Try this,
Create a User Plugin for handling user types and redirect accoording to your requirement.
you can use onUserAfterLogin
. Details can be found here.
for redirecting just use.
$app = JFactory::getApplication();
$app->redirect('url starts with index.php');
Hope its helps..
-
i am using "Redirect on Login" components to re re-direct .Do you have any idea about this components? Nov 3, 2014 at 5:36
-
No but once you wrote a plugin for this based on
onUserAfterLogin
then immediately redirect to your required pages will work fine for your requirement.– JobinNov 3, 2014 at 5:51 -
-
-
Several extensions are available at JED will allow you to do this. Both free and paid alternatives can be found.
You can redirect the users based on user group or access level, or on a per-user basis. There are also some plugins that handle failed login attempts.