Hello,
Did as you suggested, but here is the problem I encountered.
I have to show the ditto using following list items:
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
</ul>
<p>View All</p>
I am using the following ditto call:
[!Ditto? &parents=`38` &orderBy=`createdon DESC` &display=`5` &total=`5` &tpl=`mytpl` &tplFirst=`firsttpl` &tplLast=`lasttpl` &noResults=`No events yet.`!]
Following are the templates:
mytpl:
<li><a href="[~[+id+]~]">[+pagetitle+]</a></li>
firsttpl:
<ul>
<li><a href="[~[+id+]~]">[+pagetitle+]</a></li>
lasttpl:
<li><a href="[~[+id+]~]">[+pagetitle+]</a></li>
</ul>
<p><a href="[~38~]">View All</a></p>
Now the problem is if I have more than 3 items, this works good. But If I have only 1 item, it uses the lasttpl eliminating the opening <ul>.
How do I sort this out?