By WEBstar on
Hi, i want to create own node.
I use Bartik theme.
I created new Content type, called LOGO.
In template.php in Bartik theme i enter:
function bartik_preprocess_page(&$variables, $hook) {
//some other stuff
if (isset($variables['node'])) {
$variables['theme_hook_suggestions'][] = 'page--logo.tpl.php'. $variables['node']->type;
}
}
Is everything ok in here?
In page--logo.tpl.php what i need to enter? Can i just copy node.htpl.php in that file and that modify it?
And the last question is: How to show it on main page?
I need to get something like this:
http://i56.tinypic.com/2nqvg21.jpg
Thank you very much!
Comments
Hello, can anyone help me
Hello, can anyone help me with this thing?
Thank you very much!
Not sure what exactly youre
Not sure what exactly youre trying to do, maybe you should explain in greater detail. but..
If youre trying to get a special template (tpl.php) for your front page, then you just need to create page--front.tpl.php, i think, and that should do it without any code in template.php.
You should copy and paste page.tpl.php into that new file and modify it.
-------------------------------------------------
Always be nice to people on the way up; because you'll meet the same people on the way down.
Wilson Mizner (1876 - 1933)
I want to show just one
I want to show just one content type in my custom node.
Hello, Anyone? Thank you!!
Hello,
Anyone?
Thank you!!