Problem/Motivation

The List-handler of EntityFieldHandlerHelper doesn't provide a posibility to generate a html-list.
Would be nice to have such an option - especially to build views.

Proposed resolution

Add such a handler. Please see the attached patch for a possible solution.

Remaining tasks

Review patch.

User interface changes

New option "Output values as list" in "List-handling".
New setting "List type" if "Output values as list" is selected.

API changes

none.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

das-peter’s picture

Issue tags: +dvcs11

Added Views sprint tag.

fubhy’s picture

Status: Needs review » Needs work
+++ b/views/handlers/entity_views_field_handler_helper.incundefined
@@ -420,20 +433,32 @@ class EntityFieldHandlerHelper {
+          return theme('item_list', array(
+            'items' =>  $inner_values,

There are 2 whitespace characters in the 'items' line (behind the arrow).

Other than that it looks okay. Just need to see what fago thinks about it. :)

das-peter’s picture

Status: Needs work » Needs review
FileSize
4.8 KB

Here we go, re-rolled and fixed also other coding standard violations in the existing code.

Status: Needs review » Needs work
Issue tags: -dvcs11
das-peter’s picture

Status: Needs work » Needs review
Issue tags: +dvcs11
fago’s picture

Status: Needs review » Fixed

Sry for the late review.

+++ b/views/handlers/entity_views_field_handler_helper.inc
@@ -6,7 +6,8 @@
- * Helper class containing static implementations of common field handler methods.
+ * Helper class containing static implementations of common field handler
+ * methods.

The first line actually may be longer than 80 chars, but should not break. So let's keep it as it was.

Except for that, patch looked good. Committed it, thanks.

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