Is there an way to use setup a text field in the panel that auto fills? or has a fallback if empty?
site title
article title
if no article title, use the site title instead
thanks!
Stef
Is there an way to use setup a text field in the panel that auto fills? or has a fallback if empty?
site title
article title
if no article title, use the site title instead
thanks!
Stef
You can do that in your template:
echo $article->title()->isNotEmpty()? $article->title():$site->title();
Thank you that worked like a charm!