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 /about
page?
Thanks
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 /about
page?
Thanks
Say I have a CMS page /about
and a Spanish translation for it with the slug /acerca
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.
Thanks
@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
Hi, did you get anywhere with this? I'm totally stuck, need to add some fields to the Page Module. If you found a solution could you please let us know? Thanks.
Anybody got any ideas on how to get custom views appearing on the Page module with Vue.js?
@jdkman Won't this break when/if the Page module is updated?
Can't you just delete the whole folder you created when you installed it?
Having dug a little deeper, i can see this might be possible in the same way - by simply adding en-gb
, en-ca
etc as their own languages - although i've not tried it yet...
Closing question..
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.
Thanks.