I'm working on a project where we need to post publication Editions, each containing any number of Stories, of which there can be one of three entry types. The URL structure we're shooting for is foo.com/pub/edition-slug/story-slug
, and I'm not sure how to set the "URL Format" field for each Section.
For example, I've set the Editions Section to pub/{slug}
, and have tried setting the Stories Section to the following...
pub/*/{slug}
: literally includes*/
in resulting URL{parent.last.uri}/{slug}
: only results infoo.com/story-slug
My questions, then:
- Is it possible to dynamically reference a parent Section's slug when we're not in a Structure?
- If no to #1, is there a more appropriate layout (rather than two independent Sections) that'd allow the Edition > Story relationship given that Editions and Stories are distinctly different? (I'm avoiding a Structure because I can't rely on editors not to make a Story top-level with nested Editions, for example—no way I understand to enforce that Edition > Story hierarchy.)
I can get the URLs working with a custom route, but at the loss of a proper Live Preview and the other benefits of clean URLs like sitemap generation, etc.