This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

anonimo21855
anonimo21855

Hi, is it possible to access and return localeUrl in page ? I trying to access:

{{ this.page.viewBag.localeUrl.en }} but its returning nothing.

{{ this.page.settings.viewBag.localeUrl.en }} this not working too.

{{ this.page }}I so it :

{"fileName":"home.htm","content":"title = \"Pagrindinis\"\nurl = \"\/\"\nlayout = \"default\"\nmeta_title = \"ddd\"\nmeta_description = \"ddd\"\nis_hidden = 0\nseo_keywords = \"ddd\"\ncanonical_url = \"dd\"\nrobot_index = \"index\"\nrobot_follow = \"follow\"\n\n[viewBag]\nlocaleUrl[eng] = \"\/main\"\nlocaleUrl[en] = \"\/main\"\n==\n{% content \"puslapiai\/mainPage.htm\" %}","mtime":1486377348,"markup":"{% content \"puslapiai\/mainPage.htm\" %}","code":null,"title":"Pagrindinis","url":"\/main","layout":"default","meta_title":"dd","meta_description":"dd","is_hidden":"0","seo_keywords":"dd","canonical_url":"dd","robot_index":"index","robot_follow":"follow","viewBag":{"localeUrl":{"eng":"\/main","en":"\/main"}},"settings":{"title":"Pagrindinis","url":"\/main","layout":"default","meta_title":"ddd","meta_description":"dd","is_hidden":"0","seo_keywords":"ddd","canonical_url":"Sddd","robot_index":"index","robot_follow":"follow","viewBag":{"localeUrl":{"eng":"\/main","en":"\/main"}}}}

Last updated

anonimo21855
anonimo21855

Best cms support ever. Thanks.

Octo
Octo

It's a bit difficult to read post formatted like this. Would you reformat it as readable code so people can understand what you are on about?

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.