Problem/Motivation

We able to output any field by Entity field CTools content type and this is really great. But, I guess would be nice to have a possibility for substitute keywords from context.

Proposed resolution

Add #post_render callback and replace keywords.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Examples

  1. Choose the field formatter.

    Choose the field formatter

  2. Use context keywords in field formatter form.

    Use context keywords in field formatter form

Comments

BR0kEN created an issue. See original summary.

br0ken’s picture

gaydamaka’s picture

Used it on my project - works good.

gaydamaka’s picture

Status: Needs review » Reviewed & tested by the community
br0ken’s picture

Come on, maintainers! Here is needed your attention.

br0ken’s picture

Up

br0ken’s picture

Assigned: br0ken » Unassigned
japerry’s picture

Status: Reviewed & tested by the community » Needs work

Before getting this in, can we get some help descriptor under the formatter indicating that you can use context replacements in the strings?

br0ken’s picture

Status: Needs work » Needs review
StatusFileSize
new1.53 KB
new609 bytes
br0ken’s picture

StatusFileSize
new1.53 KB

Just a re-roll.

Status: Needs review » Needs work

The last submitted patch, 10: ctools-substitute_keywords_entity_fields-2591117-10.patch, failed testing.

loparev’s picture

Status: Needs work » Reviewed & tested by the community
rivimey’s picture

  • japerry committed 9ae0392 on 7.x-1.x authored by BR0kEN
    Issue #2591117 by BR0kEN: Allow to substitute keywords from context for...
japerry’s picture

Status: Reviewed & tested by the community » Fixed

Awesome, thanks. Committed.

Status: Fixed » Closed (fixed)

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

klausi’s picture

This has introduced a regression for empty field output, opened #2900901: entity_fields substitute keywords context should not be added for empty field output.