OK, just realised I can do
$page->getTranslation('es')->slug to get a translated URL/slug for the current page, but what if I'm not on that page, what if i'm on the homepage and want to get the translated URL for the
Say I have a CMS page
/about and a Spanish translation for it with the slug
Is there a front-end method to get each URL? E.g. I am viewing the site in
en and want to get the
es version of
/about, which would be
/acerca, and visa-versa?
I've read how to get translated routes, but can't find anything about translated CMS pages/slugs.
@nWidart confirmed that there is no way to override or add to the templates in existing modules, and instead the existing module should be removed from composer dependencies, make your own changes to the module, and commit it as part of your project - https://github.com/AsgardCms/Platform/issues/546
Having dug a little deeper, i can see this might be possible in the same way - by simply adding
en-ca etc as their own languages - although i've not tried it yet...
Just upgraded to AsgardCMS v3 - but my custom module which extends the Page module (adds page attributes in admin section) isn't appearing when creating/editing a page.
Is there something we need to do differently to get views showing in admin (I understand that the page module is using Vue now)?
Can't see any documentation/guides for it.
Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.