Path-based template files - Got it.
| Project: | Advanced Theme Construction Kit (ATCK) |
| Version: | 6.x-6.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
In D5, one could do url-based template files - D6 only looks at the nodes and pays no attention to aliases. I'm working on a site where I need to have different path-based styling (e.g., "Programs" will have one style, "Get Involved" another via /programs/[node] or /get_involved/[node]). This is easy in D5 by creating something like page-programs.tpl.php, but that doesn't work in D6.
I know the answer is someplace here, but either I can't get the snippets to work or I'm pasting them in the wrong place in template.php.
Any guidance here would be greatly appreciated - otherwise I'll need to create a different template for every page - yuck!
Thanks so much for your help - here's my latest ATCK site - very simple style-wise, but the one I'm working on now will be very cool!
Thanks for all your work on ATCK - I love it! Rock on...

#1
Answer is, indeed here.
What I got bitten on, evidently - yet again - is inadvertently pasting invisible characters from posted code. (If you use TextWrangler, always Zap Gremlins for a template.php file.) Arrgh!