Code: Select all
$entry->fields.TestField->value
Code: Select all
$entry->fields.Article Author->value
I've tried various tricks like:
- $entry->fields."Article Author"->value
- Assigning the key name to a variable and using eval
- Using capture to assign the variable value and then using eval
Does anyone know how this can be done in Smarty? Without this, the only way to access a custom field in the latest News module is to run a foreach loop and check for the name of the desired field - that seems long-winded.
TIA
-S