dijkr / Copia

Laravel-project with CMS
0 stars 0 forks source link

Use the CMS to set the category title #17

Open dijkr opened 1 year ago

dijkr commented 1 year ago

The category-data is loaded to the view, by using the slug of the URL.

Database: {{ categoryData.banner }}

With Statamic: <h1> {{ title }} </h1>

It would be nice if Antlers could default to {{ categoryData.banner }}. Since the data will be available from the database anyway. Whenever a new category it added to the database, the CMS would not have set its own page for that yet. So as a placeholder it would be nice. Then the editors from the CMS can override it with their own title.