You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been umable to find this, but maybe I this is a middleware issue and I just dont know it.
I want to have multiple different page layouts that are dynamic, but all located at the root, so that they are all just /tshirt-white, /article-lasvegas, /gallery-shoes, etc. Each of these needs to be a different page layout and will dynamically pull in content from a database to populate it. I also assume that I would be using const { id } = useRoute().params to fetch the specific content from the database. I dont think it is possible to just create [id2] and [id3] all at the root or in the same folder. i want a completely flat file structure.
Is there a way to do this? I have asked multiple Vue/Nuxt developers and they tell me it cant be done.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been umable to find this, but maybe I this is a middleware issue and I just dont know it.
I want to have multiple different page layouts that are dynamic, but all located at the root, so that they are all just /tshirt-white, /article-lasvegas, /gallery-shoes, etc. Each of these needs to be a different page layout and will dynamically pull in content from a database to populate it. I also assume that I would be using const { id } = useRoute().params to fetch the specific content from the database. I dont think it is possible to just create [id2] and [id3] all at the root or in the same folder. i want a completely flat file structure.
Is there a way to do this? I have asked multiple Vue/Nuxt developers and they tell me it cant be done.
Beta Was this translation helpful? Give feedback.
All reactions