Hi, folk!!! I've one problem ... I want to set A stand alone login page for anonymous user with no action for a that user to take on my site.
The setting
global $user;
if($user->uid == 0){
$vars['template_file'] = 'page-login';//where page-login.tpl.php is my custom login page template
break;
}
return $vars;
at the
function _phptemplate_variables() in template.php file is no working! :(
...
Please, tell me how can i correct use "template_file" for this goal
Thanks advance
I've set up a new Drupal site and its first content piece is the theme used in the site. I've called it Blocky because, as you'll readily see, it's a bunch of squares. I kind of like its simplicity and hope you like it. It's somewhat easy to change the colors in the CSS file. Maybe in another version I might add some scheme to include several palettes and a means to switch from one to another. For the moment, the theme resides in http://drupalmex.com.
Ok I've been looking for posts on how to do this and nothing works for me. I'm using the My Drupal Impact theme. One thing to note here also is that the theme has no template.php file. Right now the themes regions that show up are only left sidebar, content, right sidebar, and footer. Header shows up as an option but it's not there. Now I've used the Zen theme before and the greatest thing about that that I really loved was content top and content bottom. I've had too much difficulty due to my lack of knowledge to either; change Zen theme so it wasn't clunky and plain, or add the two regions to my drupal impact theme.
Here is what the page.tpl.php looks like for zen
print $language " xml:lang=" print $language ">
Hi, I'm trying to add the following to my page.tml.php file so I can style a specific page with the minimum fuss or code. I would use a new page.template file but I only need to change some CSS styles.
The Idea:
<body<?php if ($view=="news"){ print "class=\"news-page\"";} ?>>
I'd like to check if the view called 'news' is being viewed. I can't find anything in the forums related to this as I don't know what terms to search for.