Closed (fixed)
Project:
Archive
Version:
master
Component:
Page
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2008 at 04:18 UTC
Updated:
20 May 2008 at 17:52 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| humanreadable.patch | 925 bytes | wretched sinner - saved by grace |
Comments
Comment #1
Susurrus commentedI 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.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.