We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14089
    • 56 Posts
    i am using ditto to pull blog posts and jot for the comments. what i would like to do is have it say (if comment number = 1) Comment OR (if comment number != 1) Comments. right now i am just using Comment(s). i assume you can do this with phx but i don’t really know. any suggestions?

    here is the part of the template from the ditto call

    <a href="[~[+id+]~]#pageComments">[[Jot? &docid=`[+id+]` &action=`count-comments`]] Comment(s)</a>
      for all things independent, check out http://www.indieophile.com
      • 33337
      • 3,975 Posts
      <a href="[~[+id+]~]#pageComments">[[Jot? &docid=`[+id+]` &action=`count-comments`]] [+phx:if=`[[Jot? &docid=`[+id+]` &action=`count-comments`]]`:is=`1`:then=`Comment`:else=`Comments`+]</a>

      Haven’t tested, but this should work.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 14089
        • 56 Posts
        ah. sweet. thanks man! that worked great. this community is so helpful.
          for all things independent, check out http://www.indieophile.com
          • 29076
          • 615 Posts
          Thanks. I use it also. smiley
            I think, thererfor I am! But what I am, and why...?