We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32393
    • 29 Posts
    Hi,

    Is their an easy way to make my *date* template variable all lower case? I’m using the standard date picker widget, which of course shows the date on the page, but with standard uppercase lettering at the beginning of each work, ex: January 1, 2010. I would simply like "January" to be "january" - all lowercase. Is there something I can simply add to [*date*] to make is all lowercase?

    For my Ditto code, I was able to use [+date:lcase+]. But, that of course won’t work for the date template variable. [*date:lcase*] isn’t valid. Anything else I can try? What file is the code for the date picker/date template variable in? Maybe I can manually go in and add the lcase to the php code itself...

    Thanks!
      • 25663 MODX Staff
      • 12,272 Posts
      The easiest way would be to wrap it in a <span class="lowercase"></span> and use CSS:
      .lowercase { text-transform: lowercase }
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me