Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2010 at 23:22 UTC
Updated:
7 Sep 2012 at 14:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerDo you have any suggestions how this should be marked? Greyed out is already used by inheritance of settings. Perhaps there should be a * in Front or similar
Comment #2
drawk commentedYeah, greyed out seems off limits given that it is used as a visual cue for inheritance. I'd be fine with any sort of visual indication ('*' would work) or it could be images like in Photoshop when a layer is hidden / turned off.
Comment #3
dawehnerI never used photoshop :) Can you provide a screenshot?
Comment #4
drawk commentedI try to avoid using Photoshop as much as possible, but grabbed this from the web :) Notice the eye icons to the left of the layers - clicking on one of these disables the display of that layer and removes the eye icon so that you can see at a glance that it is disabled.
Another things i noticed though is that the 'greyed out' look seems to be just for the labels of inherited fields. The actual fields themselves seem to use italics to show inheritance - so they could probably still be shown in a lighter shade to indicate being excluded from display.
Comment #5
drawk commentedOops, forgot to attach the PS screenshot
Comment #6
drawk commentedHere's a patch that adds a class to excluded fields so that one can at least identify them and do what they would like to do via js or css
Comment #7
dawehnerI would suggest to add the "exclude" class to $field['class']
Then the tpl looks much cleaner.
Comment #8
drawk commentedSeems reasonable, although I was thinking along the lines of:
- keeping it consistent with the way 'changed' is handled
and
- it may be beneficial to be able to determine if the field is excluded from within the tpl (ie. by checking $field['exclude']) in the same way it is handy to be able to check $field['changed'] or $field['title'], etc..
I'm not all that familiar with Views internals, but I thought that $field['class'] as set in admin.inc is meant to be the single 'bigger picture' identifier (displayid-type-id)
I'm not married to any particular approach though, so if still feel that appending it to $field['class'] is the way to go, I'd be happy to re-roll the patch.
Thanks!
Comment #9
drawk commentedAs far as visual indicators go, I'm beginning to lean towards parenthesis. ie:
Fields
Node: Title title
(Node: Type type)
Node: New Comments comments
Would be a View where the 'type' field is hidden / excluded
Thoughts?
Comment #10
drawk commentedScreenshot with parens
Comment #11
drawk commentedAnother screenshot, this time looking at the 'Page' display with inherited fields
Comment #12
jolidog commentedI thing an image is not needed, your previous suggestion with the parenthesis is good, but why not just adding (Excluded) to the field title?
Fields
Node: Title title
Node: Type type (Excluded)
Node: New Comments comments
and style the "(excluded)" with style="color:red", or add a class such as excluded or excluded-field and style a span element accordingly.
Added a simulation made with firebug.
Comment #13
jolidog commentedhum, but then we would need to have the "Excluded" text translatable....
Comment #14
drawk commentedCould we not just pipe it through t()?
Comment #15
drawk commentedHere's the patch with the parens - I'm equally open to Jolidog's suggestion as well if we can get consensus.
Comment #16
dawehnerCan we move this logic to the preprocess? This would clean up the code a big
Comment #17
iantresman commentedI was just thinking how useful this would be, myself. Since UI real estate is in short supply, perhaps showing the word "Excluded" takes up too much space when fields names are long. Perhaps a symbol would be sufficient, with a pop-up tooltip for details, eg:
Then hovvering the cursor over "X" would show "Excluded from display", over "R" would show "Rewritten field", etc.
Comment #18
tim.plunkettMarking this as a duplicate of #1278456: Append [hidden] to administrative title of excluded fields