2

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?

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.