I feel like this should be simple enough but the solution is eluding me.
I’m setting up a site with projects and a store. The idea is to keep the information for a particular project and the store data that relates to it all together. A single touch point. Right now everything is in a ‘project’ blueprint which has a shop toggle field to filter it in the store.
How would I set it up so I can view and click through the store filtered projects in the store section while keeping the url in the /store/item configuration? (/store/project-1 as well as /projects/project-1). It’s easy enough to display a filtered collection of store items but the children urls point to projects.
I’m wanting to use a single source of content (with children) in two usage scenarios with different page templates and urls.
From a SEO perspective, serving the same content under multiple URLs is not a good idea at all.
To change the URLs of the pages, you would need a page model that defines the children of the original projects parent as (virtual) children of the store parent.
I noticed that the virtual pages created with this method no longer work for me in the latest version of kirby. I did a simple test with the starterkit and get the same error. Any help you can offer would be most appreciated.
If I hit the new page [starterkit.url]/test - I get a garden variety ‘page cannot be found’ 404 error.
I’m using the 3.7.0.2 Starterkit as well with Valet. The only other change I made is adding ‘define(‘KIRBY_HELPER_DUMP’, false);’ to the index.php file.