I have questions though. I’m lost on the 404 error page. I created the folder unpublished and it creates one more flag automatically now. It’s not actually my main issue. I don’t really understand how to create a 404 per language...if it’s possible. Seems that I don’t have a directory languages in assets.
Any idea on how to have a different 404 per language?
You have to create the directory yourself in the assets folder. And for each language you create a php-file with the 404-message in that folder.
en.php
<?php
$modx->setPlaceholder("errorpage",'We\'re very sorry, but this page is not available');
$modx->setPlaceholder("link-errorpage",'<p><a href="[~7~]">Back to the homepage</a></p>');
?>
You can make your own placeholders to put in the error-page
Also call the language snippet uncached like ssinuco said. [!language!], otherwise the errorpage doesn’t change language.
For the flags, it’s probably something in the Wayfinder call, try to un-tick ’show-in-menu’ on the errorpage folder