-
☆ 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
-
☆ 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?
-
☆ A M B ☆
- 453 Posts
I put 2 Ditto calls with different parameters (&start=’10’).....
thanks
BASE - Web Design Studio
MODX Ambassador
Website
-
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