cguanaja wrote: ↑
Thu Sep 16, 2021 1:08 am
Appreciate the input here @pe7er - quick questions for you.
- let's say for 'en-GB' => 'error', 'es-ES' => 'error-404' - are error and error-404 pages that you have with the respective output? Having each page associated with a menu and language?
Yes, that's correct.
"error" = the alias of a menu item of type Single Article and associated to English, which links to an English article "Sorry, not Found". Same goes for "error-404".
Same for Spanish but in Spanish "error" is also "error". As I used that alias in the English menu already, I decided to use "error-404".
- which one is the tag returned for get('tag')?
On English pages the get('tag') will be 'en-GB' and on Spanish pages 'es-ES'.
From my array of languages/aliasses, I get the correct alias to retrieve that menu item.