How to display something conditionally in template file depending on the current path I would like to do  on page.tpl.php conditionally depending on the current path. I'm using Auto Assign Role and have two paths for registration. 

Reading this tutorial, as far as I've understood I can make a template file that overrides the registration page. However I would like to display different things on two deferent paths. How can I do this?
Drupal core's template suggestions allow for naming page templates based on the path of the page. So, theoretically, if you had www.mysite.com/registration-a, then you could use the the page template name page--registration-a.tpl.php and so forth.

However, if this does not work, you can create a page preprocess function in your theme or module that adds some template suggestions based on the path.  For example:

function THEME_NAME_preprocess_page(&amp;$variables) {

 if($arg[0] == 'registration-a'){
 $variables['theme_hook_suggestions'][] =  'page__registration_a';
 }

 if($arg[0] == 'registration-b'){
 $variables['theme_hook_suggestions'][] =  'page__registration_b';
 }

}


this would allow you to use page--registration-a.tpl.php and page--registration-b.tpl.php, etc.

For reference, $arg is an array that contains the different parts of a URL, so if you had the path mysite.com/registration/customer, then $arg[0] would be 'registration' and $arg[1] would be 'customer'.