Rename 'add Case' in 'add case'

kiamlaluno - March 1, 2009 - 23:52
Project:Case Tracker
Version:6.x-1.x-dev
Component:User interface
Category:task
Priority:normal
Assigned:Unassigned
Status:needs work
Description

In the project node created by case_tracker.module, there is a add Case link; the link should be renamed add case, to follow the way Drupal uses to name the links showed under the node body.

#1

jmiccolis - March 3, 2009 - 18:52
Status:active» by design

That link is auto generated based on the name of the node - which here is "Case". If you'd like to alter how the name is presented you could consider using the css "text-transform" property in your stylesheet, or you may prefer to change the name of the node type to 'case'.

#2

kiamlaluno - March 7, 2009 - 12:59

The module could simply pass the content type name to drupal_strtolower().

#3

kiamlaluno - March 14, 2009 - 19:07
Status:by design» active

The module uses for the Operations links two different, and inconsistent strings.
If one link is open Case (where Case is the content type name used for the reports), the other link is view all project cases. This means that if I would use a content type named Ticket for the reports, the links I see would be open Ticket, and view all project cases.

It would be better if the module would use case (and cases) in the links, or it would use the content type name in lower characters (but this would mean the module should also use the plural of the content type name in the second link).

#4

kiamlaluno - April 7, 2009 - 16:11

Is there any progress in this?

#5

shas3n - August 24, 2009 - 14:47

+ 1 for this feature.
I am using Casetracker in a non-software context and it does not make sense to create a 'Case'. So I have named the node to 'task' so that the node creation form says 'Create Task' but the project summary page has a hard coded link 'See all project cases'.
It would be great to have all the links get their name from node name rather than the current hard-coded way.

#6

jmiccolis - October 26, 2009 - 02:50
Component:Code» User interface
Status:active» needs work

Hi, I'm open to better language and/or markup here but I'm not ok with adding extra code like a call to drupal_strtolower() as suggested in #2 as I don't want to make assumptions about usage - we should move away from such assumptions.

Patches or detailed ideas are very welcome here.

 
 

Drupal is a registered trademark of Dries Buytaert.