Different page template based on url alias
thepaul - March 11, 2008 - 05:56
Easy to do if you have url's aliased like so:
/blogs/user
We just create a page-blogs.tpl file and we're off to the races.
But what do we do when our url's are aliased like this:
/username/blog
How do I create a page template for each blog in this case?

did u mean this?
Please look the "taxonomy Theme" Modules and "View - Theme" Modules.
The taxonomy_theme module allows you to change the theme of a given
node based on the taxonomy term, vocabulary or nodetype of that node.
and Using views-theme, change the system theme for pages like node/123.(node/*, user/*)
http://drupal.org/project/viewtheme
http://drupal.org/project/taxonomy_theme
hope u mean this.....
Thanks for the reply
Thanks for the reply nijulay. I don't think that this is exactly what I'm looking for. I don't want to use a different theme, I just want to override the page.tpl.
This is so easy to do when you have a static url alias, like /blogs, you just create a page-blogs.tpl, or for /articles you just create a page-articles.tpl.
But when you url alias is dynamic like /username/blog I just can figure out how to create a single page.tpl override for all user blogs.
If a person's username is bob, I can create a page-bob-blog.tpl file and it will override bob's blog page, but no one elses.
I'm looking for a way to create a page--blog.tpl override.
Nodes
One way you can do it is to make a template file for a specific node id. If your node has an alias of username/blog, it also probably has a node id. you can do: node-148.tpl.php to theme that specific node.