lang parameter in low_events not working for me with or without Publisher tag.
Hi. Thanks for making Low Events such a nice addon.
I have a question though and I can't seem to work around it.
I'm using Publisher to deal with the website translation in italian and english.
What does Low Events expect as a value for the lang parameter?
I've been trying to pass Publisher's {publisher:current_language_id}, {publisher:current_language_code} and {publisher:current_language_prefix}, but the dates will not get translated.
I even tried hardcoding lang="2", "english", "en" to force for English translation but it won't get the english translation and stick to default Italian.
{exp:low_events:entries
channel="mychannel" limit="3"
lang="{publisher:current_language_id}"
show_passed="yes"
show_upcoming="yes" unit="custom"
date_from="-1 year"
date_to="+1 year"
}
Replies
Low 20 Mar 2015 21:54
The entries tag doesn't have a lang-parameter. Try setting it to the field var: http://gotolow.com/addons/low-events/...
Milksamsa 20 Mar 2015 22:44
Ok sorry! I completely misread the documentation.
For anyone interested the correct Publisher's tag to be used is to be set like this:
{myfield:start_date ang="{publisher:current_language_code}"}