<p>I kept thinking this was in the Craft core.
Wasn't, so I made my own: <a href="https://gist.github.com/timkelty/933efd23264d79d91b7a" rel="nofollow">https://gist.github.com/timkelty/933efd23264d79d91b7a</a></p>

<p>Has come in useful in plugin dev and some templating.</p>

CC BY-SA 3.0
2016-03-16T11:22:04.183Z
2016-03-16T11:22:04.183Z
Tim Kelty
<p>Getting field values, properly prepped, is covered here: <a href="https://craftcms.stackexchange.com/questions/4486/what-is-getcontent-the-contentmodel-and-how-do-i-use-it-to-get-and-set-cust">What is getContent() / the ContentModel, and how do I use it to get and set custom field values?</a></p>

<plugin-development><field><entries-field><entrymodel>
How to get all (prepped) field values from an entry, indexed by field handle
# How to get all (prepped) field values from an entry, indexed by field handle

(Asked by: username_0 on 2016-03-16)

Getting field values, properly prepped, is covered here: [What is getContent() / the ContentModel, and how do I use it to get and set custom field values?](https://craftcms.stackexchange.com/questions/4486/what-is-getcontent-the-contentmodel-and-how-do-i-use-it-to-get-and-set-cust)

**Tags:** plugin-development, field, entries-field, entrymodel


---

## 1 answers

### Answer by username_0 on 2016-03-16. Score: 2

I kept thinking this was in the Craft core.
Wasn't, so I made my own: <https://gist.github.com/timkelty/933efd23264d79d91b7a>

Has come in useful in plugin dev and some templating.


---

