Create menu links with a seeder or migrationCreated 5 years ago by araminho
Is it possible to create menu links with a seeder or migration? The links should be related to certain pages, not just URLs. I found an example of seeding URL-type links in PyroCMS core "navigation-module" (LinkSeeder.php), but can't find an example of page-type links anywhere.
It's very much the same thing - but the page type has it's own stream information. So you would need to seed that in very much the same fashion.
You would use the page link type model and check the DB for required fields but pretty straight forward - exact same process. Different model is all.