I am trying to display the content of a non-container document that Ditto is called from dynamically (&parents=`[*id*]`). Basically, the idea is to have some documents that would have children which would be paginated, and some documents in the same parent folder without child docs, only with own content which I want to display as well.
Ditto Call[!Ditto? &parents=`[*id*]` &summarize=`1` &tpl=`paginate_content` &paginateAlwaysShowLinks=`1` &paginate=`1` &sortBy=`createdon` &sortDir=`ASC` ]
paginate_content Chunk<h3>[+pagetitle+]</h3>
[+content+]
<br><br>
<div id="ditto_pages"> [+previous+] [+pages+] [+next+] Page <strong>[+currentPage+]</strong> of <strong>[+totalPages+]</strong></div>
With the above code I get "No documents found." if the document has no children.
I even tried &emptyText=`[+content+]` but that didn't work.
I don't simply use [*#content*] instead of Ditto because I need pagination.
I guess there should be a simple solution to this, but I couldn't find it for the last 6 hours on the forum, in the documentation or wiki.
Please help me before I get brain damage.