Add nid to node template suggestion and clean node type suggestion.
gpk - June 11, 2008 - 18:28
| Project: | Drupal |
| Version: | 6.x-dev |
| Component: | theme system |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
This seems like an obvious omission to me? I mean, the node id is in one of the page template suggestions page-node-[nid].tpl.php) and the block delta in block-[module]-[delta].tpl.php.

#1
This adds the NID suggestion. It also fixes any strings that may underscores for the node type. The comment was already there but it was overlooked. They are so close together, I rolled it into one.
#2
And this one is for Drupal 6!!
Only cleans the node type.
#3
curious that we forgot about this.
#4
Committed to DRUPAL-6 and CVS HEAD. Thanks dvessel.
#5
Sorry to re-open this.
Is there any reason why the nid isn't being made available to Drupal 6 as a template suggestion?
Regards
Alan
#6
Dries said he committed it to 6.
#7
alanburke, even though the nid is a small change, it is nonetheless a feature so it was only added for 7.
Easy enough to supply through your theme for now.
#8
Automatically closed -- issue fixed for two weeks with no activity.