Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: URL translation for use within conditional
Status | Resolved |
Add-on / Version | Publisher 1.1.2 |
Severity | Critical |
EE Version | 2.7.1 |
Rob Post
Oct 03, 2013I’m having a situation where I want to conditionally load some jQuery based on the value in segment_1.
{if segment_1 =="member"}
[removed][removed]
{/if}
Now the default language template_group in this situation is “member”. So the jQuery only loads when the template_group starts with “member”. The translated language for Dutch would be “gebruiker”. What tag is available here to have the conditional segment_1 be translated on the fly f.i. from “member” to “gebruiker”.
Or do I have to extend the conditional (extra load) to an OR situation using all translated values for the template_group “member”?
BoldMinded (Brian)
Well, segment_1 should be the translated value, publisher:segment_1 should be the non-translated/default value.
Rob Post
Brilliant!
The more I use Publisher, the more I start loving it. After building various multi-language sites using different approaches and extensions Publisher is by far the best, easy to implement, stable, flexible and complete solution. 😊
BoldMinded (Brian)
Thanks for the kind words! Mind if I use that quote elsewhere? 😊