We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8881
    • 73 Posts
    OK for some reason in my articles in the index page where you post news at. It shows everything fine.. All the comments system work fine. But right after every article it shows

    [!Jot? &customfields=`name,email` &canpost=`Registered` &subscribe=`1` &canmoderate=`Site Admins` &placeholders=`1` &output=`0` &guestname=`An anonymous visitor` &subscribe=`1` &notify=`2` &subjectSubscribe=`A news article you are moderating at Endless-Bleach.com has been updated`!]

    I dont know why it shows that..

    My call for the index page is
    [!Ditto? &tpl=`dittoTpl` &startID=`1` &summarize=`5` &dateFormat=`%B %d, %Y`!] 


    and then I have a comments chunk names Comments with this in it
    <div id="commentsAnchor">
    [!Jot? &customfields=`name,email` &canpost=`Registered` &subscribe=`1` &canmoderate=`Site Admins` &placeholders=`1` &output=`0` &guestname=`An anonymous visitor` &subscribe=`1` &notify=`2` &subjectSubscribe=`A news article you are moderating at Endless-Bleach.com has been updated`!]
    <a id="pageComments"></a>
    [+jot.html.subscribe+]
    [+jot.html.comments+]
    <a id="pageCommentsForm"></a>
    [+jot.html.form+]
    [+jot.html.moderate+]
    [+jot.html.navigation+]
    </div>


    And last I have another chunk called dittoTpl with this in it..
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table2">
    <tbody><tr>
    <td width="100%">
    <div align="left"><span class="style9"><a href="[~[+id+]~]">[+title+]</a></span><br>
    <font color="gray">Reported by: <b>[+author+]</b> on [+date+]</font></div>
    </td>
    </tr>
    <tr>
    <td style="border-top: 1px dotted rgb(207, 207, 207);" width="100%">
    	<div class="ditto_head">
        	[[[[tagLinks? &id=`[+id+]` &tv=`tags` &separator=`, ` &fap=`1` &path=`categories` &label=`Tags: ` &style=`dittoTags`]]
    	</div>
       <div class="ditto_content">
    		[+summary+]</div>
    </td>
    </tr>
    <tr>
    <td width="100%">
    <table style="border-top: 1px dotted rgb(211, 211, 211); border-bottom: 1px dotted rgb(239, 239, 239);" border="0" cellspacing="0" width="100%" id="table3">
    <tbody><tr>
    <td width="220"></td>
    <td align="right" width="168"><div align="right">
    <p align="right">
    			<a href="[~[+id+]~]#commentsAnchor">
    				Comments ([[Jot? &docid=`[+id+]` &action=`count-comments`]]) </a></div>
    </td>
    </tr>
    </tbody></table>
    </td>
    </tr>
    </tbody></table>


    The error shows up at http://bleach.endless-4um.com/index.php
      • 8881
      • 73 Posts
      Any help would be appreciated.. I have no idea why it is doing this.. :/
        • 18397
        • 3,250 Posts
        MODx as of 0.9.5 will not parse nested snippets of the same cache state. In other words you need to alternate cached followed by uncached snippet calls to make it work. The next version of MODx will not have this issue.
          • 8881
          • 73 Posts
          Quote from: Mark at Jan 06, 2007, 04:05 AM

          MODx as of 0.9.5 will not parse nested snippets of the same cache state. In other words you need to alternate cached followed by uncached snippet calls to make it work. The next version of MODx will not have this issue.

          What do you mean by unchached call and cached? The only call I have is {{Comments}} in my articles...
            • 18397
            • 3,250 Posts
            [! vs [[ for snippet calls
              • 8881
              • 73 Posts
              So ur saying in one article put {{Comments}} Then in the other put [!Comments!] And keep alternating?
                • 18397
                • 3,250 Posts
                No, I am saying if your Ditto call is [! then your jot call must be [[. Or vice versa.
                  • 8881
                  • 73 Posts
                  When I do it like [[ This it takes away the message underneath the articles. But then the comment form wont show up for people to post comments..
                    • 8881
                    • 73 Posts
                    do you understand what im trying to fix?
                      • 18397
                      • 3,250 Posts
                      Yes, I’ve had this issue before with nested snippet calls. Try it the other way. Cache the Ditto call on an uncached page and have the Jot call uncached.