We use the following code.
category:
label: Category
type: select
options:
news: News Article
architecture: Architecture
photography: Photography
3d: 3D
web: Web
in our yaml. The admin selects an option.
It stores the id in our text file
Category: news
We want to return News Article instead of news on the homepage
$page->category()->
Any idea how to do this?
Thanks