Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change default layout from "layout" #214

Closed
edalzell opened this issue Jun 27, 2020 · 3 comments
Closed

Ability to change default layout from "layout" #214

edalzell opened this issue Jun 27, 2020 · 3 comments

Comments

@edalzell
Copy link

Bug Description

I moved my template/partials/layouts into folder to keep it a bit tidier as per https://statamic.dev/views#organize-by-type. Once I did that, my site broke because it couldn't find the layout.

Maybe we have a setting to indicate where the views are? Or the loader can look in a few spots?

How to Reproduce

Have a site working with a flat view structure, them move the layout to a layouts folder.

Environment

Statamic version: 3.0.0.-beta-32

PHP version: 7.4

Install method (choose one):

  • Fresh install from statamic/statamic
@jasonvarga
Copy link
Member

It should look in the layouts subdirectory for you.

@edalzell
Copy link
Author

Ah it does indeed. I had renamed it from layout.antlers.html to default.antlers.html, cuz that's a better name.

Would be nice perhaps if we can set the default name?

@jasonvarga jasonvarga transferred this issue from statamic/cms Jun 29, 2020
@jasonvarga jasonvarga changed the title No way to set a default layout, if layouts are in a layout folder Ability to change default layout from "layout" Jun 29, 2020
@duncanmcclean
Copy link
Member

You can now specify a default route in your statamic/routes.php config file. See statamic/cms#11025.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants