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
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.

AttachmentSize
humanreadable.patch925 bytes

#1

Susurrus - May 6, 2008 - 17:46
Status:needs review» fixed

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

Anonymous (not verified) - May 20, 2008 - 17:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.