Is there a way to access a page field, while having the field name only in a variable?
This is a very smart way to handle a list of fields. But I was wondering, if there would also be a way to find just one single field?
I could imagine something like
$fieldname = 'description'; $page->findField( $fieldname )->kirbytext();
I tried with
eval() but couldn’t get it to work, and its also not very elegant.
Thank you for your ideas!