We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31191
    • 39 Posts
    I am trying to setup a blog using the built it items from the Sample website.

    I copied over all the Chunks, Snippets and TVs from the sample install.

    On my blog page, the right menu pulls the recent blog posts, but in the main content area, it’s not pulling the posts.

    http://webbministries.com/blog.html

    I’m not sure what I’m doing wrong. My Blog page has an id of 14. Here is the code I have:

    [[Ditto? &startID=`14` &summarize=`2` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]


    Whenever the page loads, it just loads the code install of running it? Any suggestions?
      perusing forums is where my comp sci degree got me.
      • 36592
      • 970 Posts
      Try changing snippet call to non-cache mode [!...!].
        • 31191
        • 39 Posts
        ok, this is bizarre,

        I added the ! at the beginning and end of the snippet in the blog page and this it added another [ and ] instead of the !

        
        [[[Ditto? &startID=`14` &summarize=`2` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]]
        
        


        I know its not a typing error because ! and [ are no where near each other on the keyboard!
          perusing forums is where my comp sci degree got me.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          So your snippet call looks like this?
          [[! ... !]]


          It needs to look like this:
          [! ... !]


          What happens is the parser on the first pass through the document will replace any [! with [[, then run the document through again, this time processing the now-normal snippet tags. So if you’ve got the double [[!, then you end up with a triple [[[ which it can’t process.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 31191
            • 39 Posts
            Ok. That fixed it. I have the call with just single brackets and cached and its working.

            Thank you for your help.


              perusing forums is where my comp sci degree got me.