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: Publisher Domain Control with Publisher Template Tags

Status Resolved
Add-on / Version Publisher Domain Control 1.0.0
Severity
EE Version 2.8.1

Carly Smith

Dec 21, 2015

 

Description:
I’m using the Publisher Domain Control extension and I want to use the Publisher template tags particularly for this variable {publisher:current_language_prefix}. Right now, I’m getting just “en” on all of the different sites.

 

 

 

#1

BoldMinded (Brian)

Can you please provide more information, this isn’t enough to look into anything. What are your Publisher settings set to? What languages do you have? How many sites? What are your PDC settings set to for each site? What is your default language for each site?

#2

Mighty Citizen

Comment has been marked private.

#3

BoldMinded (Brian)

Please provide screenshots of the settings. Thanks.

#4

BoldMinded (Brian)

Logging into sites is not the first thing I do, if anything its the last.

#5

Mighty Citizen

Forgot to answer one of your questions regarding default language for each site - not sure what you mean by this question or how this is set up. Is this something separate from the PDC settings?

I’ve attached screenshots of the Publisher & PDC settings - let me know if you need anything else

#6

Mighty Citizen

Not sure if this was unclear from the rest of the message - but all of the translations from entries are working properly. It’s just the {publisher:current_language_prefix} variable that isn’t outputting correctly for me. My expectation was that it would output “jp” and “cn” on http://w3jp.innography.com/ and http://w3cn.innography.com/ respectively - is that true?

#7

BoldMinded (Brian)

I think you need to be using current_language_code instead of current_language_prefix. current_language_prefix only contains a value if there is a language prefix in the URL. I don’t see any indications in the code as to how it would be showing “en” for all sites… if there is no prefix in the URL, then the variable will be blank.

#8

Mighty Citizen

Ohhh gotcha - that seems to have worked. Yeah, I’m getting blank for current_language_prefix - I think I misspoke earlier. Thanks so much for your help!

#9

BoldMinded (Brian)

No worries, glad its working.

Login to reply