It would be nice if we could create attributes with properties of E.g. a node.

Comments

Stalski’s picture

Status: Needs work » Fixed

The solution is pushed to git. The only code addition is

$attributes[] = token_replace($config['fi-at'], array($variables['element']['#entity_type'] => $variables['element']['#object']), array('clear' => TRUE));

Status: Fixed » Closed (fixed)

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

kopeboy’s picture

Component: Code » Documentation
Category: Feature request » Support request
Issue summary: View changes
Status: Closed (fixed) » Needs work

So, what tokens can we use?

Should we start with [entity:....] or [node:....] or what?

stevesmename’s picture

aspilicious’s picture

Status: Needs work » Fixed

Always use the token linked to the current entity.
On top of those you can also use the global tokens, like site name.

Just experiment a bit.

Status: Fixed » Closed (fixed)

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

lorenzs’s picture

Component: Documentation » Code
Category: Support request » Feature request
StatusFileSize
new899 bytes

Added an additional patch to also allow tokens in the prefix and suffix fields of ds-expert-mode settings. It states you're allowed to put any html in there and above solution suggested it was already covered but it wasn't.