What is the best practice for defining an attribute on an Entry that isn't persistent? For example, I want to create a formatted string from two separate values stored in fields on the entry, but don't need to store the computed value in a field or in the database.
I realize I can do this in a template variable like so:
{% set fullName = entry.firstName ~ " " ~ entry.lastName %}
... but, it would be much better if I could define this in a more global way so it can be used any time I'm dealing with an Entry within a specific Section like so:
{{ entry.fullName }}
I've read about custom Modules but that seems like overkill. Also, Craft may not offer any API to do something like this, but Yii might?
Halp.