Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | clean_node_type_suggestion_string.patch | 616 bytes | dvessel |
#1 | template_suggest_node_id.patch | 663 bytes | dvessel |
Comments
Comment #1
dvessel CreditAttribution: dvessel commentedThis 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.
Comment #2
dvessel CreditAttribution: dvessel commentedAnd this one is for Drupal 6!!
Only cleans the node type.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedcurious that we forgot about this.
Comment #4
Dries CreditAttribution: Dries commentedCommitted to DRUPAL-6 and CVS HEAD. Thanks dvessel.
Comment #5
alanburke CreditAttribution: alanburke commentedSorry 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
Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedDries said he committed it to 6.
Comment #7
dvessel CreditAttribution: dvessel commentedalanburke, 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.
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
bleen CreditAttribution: bleen commentedJust throwin it out there so no one else is confused by this issue: #1 & #2 were never committed to D6... a simple workaround is to put this in your template.php
Comment #10
gpk CreditAttribution: gpk commentedStrange, #1 was never intended for 6.x, but #2 was. And despite Dries attempting to commit #2 (http://drupalcode.org/project/drupal.git/commit/e14276f9de429fe776d97a18...) the commitdiff only shows minor whitespace cleanup.
Therefore #2 is RTBC still...!