whitecube / nova-page

Static pages content management for Laravel Nova
https://whitecube.github.io/nova-page
MIT License
238 stars 41 forks source link

Remove template declaration in routes #85

Closed keizah7 closed 2 years ago

keizah7 commented 2 years ago

I have made translated routes, and after declaring template in all routes I got three static pages even I have one row in table. image It would be nice have availability static_pages without declaration of template. We using static pages directly by query

toonvandenbos commented 2 years ago

Hi @keizah7, you shouldn't handle translated pages with different routes. There are better ways to do that and exploiting them will also give better results in nova-page. The package we use for localized websites is mcamara/laravel-localization and it works perfectly with this package.

keizah7 commented 2 years ago

Your mentioned package doesn't translate route it self. It is not suitable for out situation, thats why we using custom solution. Can you add our request to your backlog. It's kind a bug too

toonvandenbos commented 2 years ago

The mentioned package does translate routes. It even has a whole section dedicated to it in their docs.

The method you're using is not a viable multilingual architecture. Your request won't be treated in this package since it's certainly not a bug.