By Cosmy on
Hi all.
Wht's the best method to obtain different page templates for different content types in drupal 6.x?
In D5.x i used phptemplates_variables function, but now it's deprecated.
And to do the same thing for views displayed as stand alone pages?
Comments
Wht's the best method to
see Working with template suggestions
The views2 module has a lot of info built-in to the app. On a particular view, if you click on the View Information link, it will give a list of the default templates provided. There's also some theming info in the Advanced Help for views.
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
thank you very much. so the
thank you very much.
so the list given on the View Information link are possible names for the template file, and i need to create one of them.. right?
Another thing.. Views2
Another thing..
Views2 permit to override any variables value?
It should help if i can rewrite the link of a view field to his node, in order to use lightbox to open the page
AFAIK, that should be the
AFAIK, that should be the general idea. There's base template files in the "theme" subdirectory of the views module directory that you can copy to start with.
But the page on "Using Views Templates" in the advanced help for views should contain the relevant info. And you can theme all the way down to the field.
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
I've tried, thank you. Do
I've tried, thank you.
Do you know why it works only if i use
function myTemplate_preprocess(&$variables)
and doesn't work if i use
function myTemplate_preprocess_page(&$variables)
Thank you in advance