currently there is nothing (in the way of a css class) that identifies which view mode was selected

Comments

roam2345’s picture

StatusFileSize
new1.16 KB
mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new1.23 KB

Updated patch fixed undefined index warning when the selected view mode is 'hidden'.

spleshka’s picture

Category: Bug report » Feature request
Issue summary: View changes
StatusFileSize
new1.68 KB

Nice patch, works for me, thanks.

The only thing I've changed in the patch is added support of static cache, because in my case the function from patch usually calls for the same entity type/bundle, so I did it to avoid duplicate executions of field_read_instances().

Anonymous’s picture

StatusFileSize
new1.99 KB

Here's a patch that also work for the Formatter Field Preset module. It also adds 'formatter-field--' to the beginning of the class for better readability and clarification.

chris matthews’s picture

The patch in #4 still applies cleanly to 7.x-1.x-dev and works for me as well.

chris matthews’s picture

Status: Needs review » Reviewed & tested by the community
Parent issue: » #3017579: Plan for Formatter Field 7.x-1.0 release

Changing status to RTBC, hopefully this will be committed.

_shy’s picture

Status: Reviewed & tested by the community » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.