.tpl woes

No replies
gustavo
Offline
Last seen: 4 years 47 weeks ago
Joined: 2010-03-10

Are there "standard" methodologies for theming visual sub-sections of a Drupal 7 website? Say your website is "Homewerks" and you have a "Plumbing" sub section (homewerks/plumbing/ - many pages) and a "Floor-coverings" sub-section (homewerks/floor/ - also with many pages). And you need a unique template for all the pages in a sub-section-group - plumbing photo masthead in the plumbing section and so on.

If each of these sections have their own sub-navigation/menus, say located in a side bar, one can just create a unique menu for each section and use something like plumbing/* in the menu setting in conjunction with the page url/path alias and the menus display on the pages related to the proper section.

But attempting to style/template these unique sections, .tpl files only seem able to use internal paths? So you can lock a front/home page to a specific template (page--front.tpl.php) or lock a single page to a single internal path .tpl file (page--node--8.tpl.php). But how do you style an entire group of pages - short of creating a .tpl file for every page in the sub group (not a great idea of course)? And yes - I'm still totally confused by .tpl naming scheme :)

This seems (in any documentation I can find) a glaringly vague and missing part of how the template stuff works. I know there must be lots of ways but isn't there some standard, recommended way to do something so everyday common place? What am I missing?

Thanks

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:


Loading...
Contact us

Below are the supported keyboard shortcuts for our video player.

space
Start / stop video
shift
Go to next video
shift
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
1...9
Jump to a percentage (2 is 20%, for example)
f
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
$29
1 month
$156
6 months
10% off
$276
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
user
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.