Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2012 at 18:36 UTC
Updated:
5 Apr 2013 at 01:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
chris burge commentedAttaching D7 patch.
Comment #2
stealth01 commentedThis indeed would be a very handy option to have. I would like to see this happen as well.
Comment #3
merlinofchaos commentedRather than introducing yet more settings, what it really should have is a custom setting and then you can fill in the true/false values as you like. With states/dependency it should be pretty easy to make those settings appear only if custom is chosen, and it should be also easy to switch correctly during render.
Comment #4
chris burge commented@merlinofchaos, I agree with the idea of a custom setting. It would certainly be an improvement upon the patch in #1. Unfortunately, I lack the necessary coding skills.
Comment #5
mattiasj commentedThis would really help out for alot of scenarios.
Comment #6
les limPatch attached implements merlinofchaos' custom option described in #3.
Comment #7
les limNew patch: same as #6, but with
'translatable' => TRUEin the option definition for both new textfields.Comment #8
les limPatch adapted for D8 here: #1869124: Customizable "true"/"false" Views output for booleans
Comment #9
chris burge commentedThanks for writing this patch. It tests successfully for me. Is the plan to backport whatever comes out of the D8 issue? #1869124: Customizable "true"/"false" Views output for booleans
Comment #10
les lim@Chris Burge: hope so!
Now that #1869124: Customizable "true"/"false" Views output for booleans is committed, here's the backport plus tests for D7.
Comment #11
dawehnerThis is nice stuff!
Comment #12
chris burge commentedSuccessfully tested patch #10 against Views 7.x-3.5.
Comment #13
dawehnerPerfect, thanks for backporting, and testing the patch.
Committed and pushed.
Comment #14
klonosThanx!!!