If you have a content type with a List-Field, and make a view for that content type which has a Contextual filter for the List-Field and you choose for "When the filter value is NOT in the URL" "Display a summary", the view will show the key from the List-Field and not the value.

For Example, if you have a List(Integer) Field with this value List:
0|foo
1|bar

A summary will show only 0 and 1, but not foo and bar.

I was talt to give summary_name() as a hint.

(Background in german)

CommentFileSizeAuthor
#1 blub.png19.63 KBdawehner

Comments

dawehner’s picture

Category: bug » feature
Status: Active » Fixed
StatusFileSize
new19.63 KB

Well actually i told stborchert that it would be hard to implement but i was wrong.

Just committed a new checkbox for list arguments to be able to show the human readable value.

Status: Fixed » Closed (fixed)

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

webchick’s picture

This actually broke string handling on List (Text) fields, because that argument handler assumes all List fields are numeric. Issue in #1424500: Transform spaces to dashes in URL in list fields does not work.