We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31573
    • 3 Posts
    Is it possible to make the reflect snippet display months as a decimal number (range 01 to 12) rather than full month names?

    I’m using following calls and everything works OK:
    [[Ditto? &parents=`49` &tagData=`documentTags` &tagDelimiter=`,` &summarize=`3` &tpl=`dittoNovosti` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` ]]

    [[Reflect?config=`wordpress` &targetID=`49` &getDocuments=`1` &dittoSnippetParameters=`parents:49` &id=`wp`  ]]

      "They misunderestimated me." - George W. Bush, Bentonville, Ark., Nov. 6, 2000
      • 18397
      • 3,250 Posts
      Unfortunately, there is not currently a parameter for that. Could you please file a Ditto ticket for customizing the month display (see link in signature).

      To quickly implement the feature, change this line in 2.1b3
      $month_text = $ditto->formatDate(mktime(10, 10, 10, $mon, 10, $year),"%B");
      

      to
      $month_text = $mon;