We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Can you please help me a little bit with Ditto =)



    I have 20 news on my homepage....

    How can I show last 10 news with different template and other 10 with other tpl (just headlines with links on the news)?
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can either use Reflect to show the rest, or use two Ditto calls with different parameters for the templates and how many to show and the offset to begin showing.

      Or you might be able to use one Ditto call, with phx conditionals to determine the template to use?
        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
        • 20349 ☆ A M B ☆
        • 453 Posts
        I put 2 Ditto calls with different parameters (&start=’10’).....

        thanks
          BASE - Web Design Studio
          MODX Ambassador

          Website
          • 25663 MODX Staff
          • 12,272 Posts
          &start=’10’ won’t work due to using single-quotes. &start=`10` with back-ticks will.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 20349 ☆ A M B ☆
            • 453 Posts
            Quote from: rthrash at Oct 09, 2008, 03:39 PM

            &start=’10’ won’t work due to using single-quotes. &start=`10` with back-ticks will.

            Yeah I know.... I puted them into the CMS, but when I wrote it here i just puted ’’ =)

            tnx! wink
              BASE - Web Design Studio
              MODX Ambassador

              Website