Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

My question is simple and straightforward. Maybe I am making a mistake but it seems that all the text in a global field is always capital. I want to have 'Eng" in a global plain text field but it outputs "ENG"

share|improve this question

1 Answer 1

If you have a global set named globalSet, and a plain text field in that set named textField, and the value you enter is Eng, then {{globalSet.textField}} will output Eng

Things that could be going wrong:

  • caps-lock: Did you enter ENG in the field in the first place?
  • |upper: {{globalSet.textField|upper}} will output ENG
  • CSS: text-transform: uppercase;
  • jQuery: $("*").text($("*").text().toUpperCase()); (or other jQuery)
  • all caps font
  • translations: {{globalSet.textField|t}} and a translation file with "Eng" => "ENG"

[edited to fold in suggestions from the coments - Marion]

share|improve this answer
3  
Another thing that could be going wrong, CSS. ;) Double check for text-transform: uppercase. –  Simon Kuran Jul 3 at 6:51
    
Yeah, and also double check for jQuery $("*").text($("*").text().toUpperCase()); –  carlcs Jul 3 at 7:00
    
One more: you could be using an "All caps font"?! –  carlcs Jul 3 at 7:13
2  
Go into your global and copy it to the clipboard, then open up Microsoft word and paste it in the contents of your global field into a new document. Highlight the text you want to be lowercase and select the 'Aa' button and select "Capitalize each word". The text is now changed into the format your template requires. Place this text back into your global and click save. I have taken the time to ensure my instructions are clear by taking a screenshot of the Microsoft Word menu item: glui.me/?i=gsxz5xohmgyq8av/2014-07-03_at_3.15_pm.png Please let me know if you need further assistance –  Luke Holder Jul 3 at 7:17
1  
@ChristianSeelbach i'm working on a more detailed answer and hope to release a beta in a few weeks. –  Luke Holder Jul 3 at 7:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.