statamic / ideas

đŸ’¡Discussions on ideas and feature requests for Statamic
https://statamic.dev
30 stars 1 forks source link

Index template not added to mounted page when scaffolding views #1095

Open marcorieser opened 6 months ago

marcorieser commented 6 months ago

Bug description

I think the following worked some time ago but not sure. Happy to open a FR if it was not.

I created a News collection, mounted the collection to the News entry (page) and clicked "Scaffold views" for index and show in the control panel.

This added template: news/show successfully to content/collections/news.yaml but the content/collections/pages/news.yaml is missing template: news/index.

How to reproduce

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 10.34.2
PHP Version: 8.2.13
Composer Version: 2.6.5
Environment: local
Debug Mode: ENABLED
URL: statamic-test.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 0
Antlers: runtime
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.38.0 Solo

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

runtime (new)

Additional details

No response

duncanmcclean commented 6 months ago

I don't believe the index view was ever scaffolded out so I've moved this to the ideas repository.