-
- 194 Posts
Perhaps you can use the placeholder [[+idx]] in your template chunk and conditionally render different code based on the idx.
[[+idx:is=`1`:then=`<div class='some style'><img src='someimage'/></div>`:else=`<div class='some other style'><img src='some other image'/></div>`]]
You can also use pdoResources available in pdoTools. This snippet has the &tplFirst option so you can define a custom template for the first result and use the &tpl option
for all other results.
See
https://docs.modx.pro/en/components/pdotools/snippets/pdoresources
Codeplaza Webdesign: for professional websites at low cost
-
- 932 Posts
On the second getResources call you just need to set the offset to 1.
discuss.answer
-
- 16 Posts
@LK, thank you - just what I need