I am using this method to show projects on the page Projects:
<?php foreach ($site->find('projects')->children()->listed()->limit(4) as $post): ?>
The problem is, if I change url from “projects” to another (in multilingual site for example), filter is not working. Tried to filter by template $site->find('template','projects'), but it’s not working.
Can you help with this? Best I think would be to filter by template.
Also now need to change this in blueprint: parent: site.find("projects"), tryed parent: index.find.page("projects") and it’s working, just not sure if it’s best way.
And how to print url to “Projects” page? Was using this before: <?= $site->find('projects')->url() ?>
If the user can change the template, however, that will still not work and you would have to introduce some sort of permanent ID (e.g. using the AutoID plugin). But if I got you right, you are only concerned about the language slug, not the slug of the default language being changed?