stumbled upon this doing a arrayl key lookup on selected...
one might expect a string but its a Field.
so $page->palette()->value() is needed to get a proper string.
maybe you could explain that just to make sure no kirby newbie gets lost.
otherwise great plugin. any donation links apart from the kirby paddle affilate link?
$selected = $page->palette(); #(string)
stumbled upon this doing a arrayl key lookup on selected... one might expect a
string
but its aField
. so$page->palette()->value()
is needed to get a properstring
.maybe you could explain that just to make sure no kirby newbie gets lost.
otherwise great plugin. any donation links apart from the kirby paddle affilate link?