By rusdvl on
Hi,
I'm creating a website and was wondering if it's possible to select which template a particular page needs to use?
I know that you can create an individual template for each page by naming it page--node-[#].tpl.php but that seems like it would take a lot of template files to create if I have several pages that use a template with one sidebar, 2 sidebars, and no sidebars.
Basically similar functionality to what Wordpress has. I go into a page and select which template I want this page to use... it doesn't need to be via a user interface; any way would do...
Any help would be appreciated.
Cheers
Comments
.~.
May not be the best way to do it but this should work.
You can create three content types ( similar of course).And then use templates based on content type.
For example,
create 3 template files and use
content-type-1 when you want one sidebar.
content-type-2 when you want 2 sidebars and
content-type-3 when you want no sidebars.
That is one way to do it...
That is one way to do it... thanks. Didn't think of doing it that way...