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

    I’m using the Reflect snippet to create a ’Latest Posts’ section in the sidebar of a blog.
    Is there a way of controlling the number of documents that Reflect retrieves from the parent document? e.g. like the ’&display’ parameter with ditto.

    Thanks for your help.

    Ben
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      params
      Purpose

      Pass parameters to the Ditto instance used to retreive the documents
      Options

      Any valid ditto parameters in the format name:value with multiple parameters separated by a pipe (|)
      Note

      This parameter is only needed for config, start, and phx as you can now simply use the parameter as if Reflect was Ditto
      Default

      [NULL]
      So you can use any parameter you would give to Ditto.
        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
        • 3141
        • 10 Posts
        Thanks for your speedy reply Susan,

        That all makes sense so I’ve now got this simple Reflect call:
        [!Reflect? &display=`3` &startID=`6` &getDocuments=`1` !]


        But it still retrieves all of the documents from the parent as opposed to 3.
        I’ve tried prefixing the ’display’ parameter with ’&params’ or ’&dittoSnippetParameters’ but to no avail.

        Any ideas?

        Thanks again.
          • 3141
          • 10 Posts
          I’m still struggling with this, any tips?

          Many thanks,

          Ben