Download & Extend

Lower case row classes

Project:Views
Version:7.x-3.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

The views row classes are not lower-cased, which can be a problem if you are using field values like Node: Published, which only displays pre-defined values.

Attached is a simple patch to just strtolower class names, and gives users the option to toggle it on or off.

AttachmentSizeStatusTest resultOperations
views_strtolower_row_class.patch1.59 KBIdleFAILED: [[SimpleTest]]: [MySQL] 1,420 pass(es), 10 fail(s), and 218 exception(s).View details | Re-test

Comments

#1

Status:active» needs review

Changing to needs review.

#2

Status:needs review» needs work

The last submitted patch, views_strtolower_row_class.patch, failed testing.

#3

+++ b/plugins/views_plugin_style.incundefined
@@ -171,6 +174,7 @@ class views_plugin_style extends views_plugin {
+      $options['row_class'] = array('default' => TRUE);

this shold probably be row_class_lower => array('default' => FALSE, 'bool' => TRUE);

#4

Status:needs work» needs review

@dawehner right, I also changed default to FALSE so it doesn't change default behavior for users who already use row classes in their views.

AttachmentSizeStatusTest resultOperations
views_row_class_lower-1571352-4.patch1.59 KBIdleFAILED: [[SimpleTest]]: [MySQL] 1,420 pass(es), 10 fail(s), and 109 exception(s).View details | Re-test

#5

Status:needs review» needs work

The last submitted patch, views_row_class_lower-1571352-4.patch, failed testing.