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,

    How can I make the date, day and month all lower case letters? Right now when using %A, %B... I get Saturday, December... but I want it to be saturday, december...

    Any ideas?
      • 16278
      • 928 Posts
      If this is in Ditto output, or if you have PHx installed as a plugin, you could try the PHx date and lcase modifiers on a placeholder:
      [+datefield:date=`%A, %B`:lcase+]
      (or maybe that’s the other way round, don’t have time to test it right now).
      laugh KP
        • 32393
        • 29 Posts
        I am using Ditto. This is what my code looks like:

        [!Ditto? &parents=`8` &display=`1` &dateFormat=`%B %d, %Y` &paginate=`1` &paginateAlwaysShowLinks=`0` &tpl=`BlogTemplate`!]


        So, I guess I would add "lcase" to the &dateFormat?
          • 16278
          • 928 Posts
          It goes in your template chunk’s date placeholder - you probably have [+date+] in BlogTemplate, you can change it to [+date:lcase+]
          smiley KP
          More on PHx in the Wiki: http://wiki.modxcms.com/index.php/PHx
            • 32393
            • 29 Posts
            Quote from: kp52 at Dec 31, 2009, 05:19 AM

            It goes in your template chunk’s date placeholder - you probably have [+date+] in BlogTemplate, you can change it to [+date:lcase+]
            smiley KP
            More on PHx in the Wiki: http://wiki.modxcms.com/index.php/PHx


            Thanks! That worked!