Use the Human Readable name not the machine name for content-type archives
wretched sinner... - April 8, 2008 - 04:18
| Project: | Archive |
| Version: | HEAD |
| Component: | Page |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi there,
I use the archive module to provide archives of different content-types on my website, however if I link to the specific page, it uses the machine name of the content type rather than the readable name.
eg on http://WhenTheTongueIsDone.net/archive/gracegems it lists the title as Archive - gracegems, rather than Archive - Grace Gems.
Attached is a patch which grabs the human readable name from the node_type table and uses that instead where it exists, and falls back to $type if it does not.
| Attachment | Size |
|---|---|
| humanreadable.patch | 925 bytes |

#1
I committed but changed most of it since db_rewrite_sql() wasn't necessary as well as the ternary operator being used weird here. Also committed to 5.x.
#2
Automatically closed -- issue fixed for two weeks with no activity.