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

    i am trying to get alternative row colours, I have added &cssRowAlt=`altRow` to my jot call and included a altRow class in my css, but it is not working (the class is not being written into the html)

    i am using my own template and have the jot CSS turned off.

    any ideas?
      • 10357
      • 573 Posts
      anyone huh
        • 7923
        • 4,213 Posts
        Can you post your Jot template code


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 10357
          • 573 Posts
          here you go:

          <div class="commentMsg">
          <div class="jot-mod">
          [+jot.moderation.enabled:is=`1`:then=`
          <a href="[+jot.link.delete:esc+][+jot.querykey.id+]=[+comment.id+]#jotmod[+jot.link.id+]" onclick="return confirm('Are you sure you wish to delete this comment?')" title="Delete Comment"><img src="[(base_url)]manager/media/style/MODx/images/icons/event3.gif" width="16" height="16" alt="Delete Comment" border="0" /></a>
          [+comment.published:is=`0`:then=`
          <a href="[+jot.link.publish:esc+][+jot.querykey.id+]=[+comment.id+]#jotmod[+jot.link.id+]" onclick="return confirm('Are you sure you wish to publish this comment?')" title="Publish Comment"><img src="[(base_url)]manager/media/style/MODx/images/icons/add.png" width="16" height="16" alt="Publish Comment" border="0" /></a>
          				`+]
          [+comment.published:is=`1`:then=`<a href="[+jot.link.unpublish:esc+][+jot.querykey.id+]=[+comment.id+]#jotmod[+jot.link.id+]" onclick="return confirm('Are you sure you wish to unpublish this comment?')" title="Unpublish Comment"><img src="[(base_url)]manager/media/style/MODx/images/icons/delete.png" width="16" height="16" alt="Unpublish Comment" border="0" /></a>`+]`:strip+]
          			 [+jot.user.canedit:is=`1`:and:if=`[+comment.createdby+]`:is=`[+jot.user.id+]`:or:if=`[+jot.moderation.enabled+]`:is=`1`:then=`
          				 <a href="[+jot.link.edit:esc+][+jot.querykey.id+]=[+comment.id+]#jf[+jot.link.id+]" onclick="return confirm('Are you sure you wish to edit this comment?')" title="Edit Comment"><img src="[(base_url)]manager/media/style/MODx/images/icons/logging.gif" width="16" height="16" alt="Edit Comment" border="0" /></a>
             		 `:strip+] </div>	
          [+comment.content:wordwrap:esc:nl2br+]<br/>
          [+comment.createdon:date=`%d %b, %Y`+] by [+comment.createdby:isnt=`0`:then=`<b>`+][+comment.createdby:userinfo=`username`:ifempty=`[+comment.custom.name:ifempty=`[+jot.guestname+]`:esc+]`+][+comment.createdby:isnt=`0`:then=`</b>`+]
          </div>
          
            • 7923
            • 4,213 Posts
            You don’t have the [+chunk.rowclass+] placeholder in there what prints the row class name..


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 10357
              • 573 Posts
              ah! i see, thank you grin