Closed flashbackzoo closed 2 years ago
Not as far as I know, I don't think we've used this module with subsites, so it probably needs to be extended include that kind of functionality.
You could avoid that when you switch subsites while adding objects.
This could be done in a new hook, e.g. "onBeforePopulateRecord" and switch back in "onAfterPopulateRecord"
Then URLSegmentFilter only gets the pages from the current subsite and can create unique urls per subsite.
Hey,
I've run into an issue using populate with subsites.
Each subsite is able to have pages with the same URL segment, for example:
mainsite.com/home mysubsite.com/home
Populate handles URL segment collisions like the CMS does, by prefixing the page id, so you get
home-2
on the subsite URL segment.Here's a example populate.yml
I'm currently working around this by creating an DataExtension on Populate and updating the records manually.
Is there a way I can populate pages across subsites without having to use the
onAfterPopulateRecords
hook?Thanks