سؤال

I want to use Ditto to display a list of documents. I cannot seem to set this up to work correctly. So far I have:

[!Ditto? &parents=`3` &documents=`10,32,339,86,303,302` &tpl=`blog_summary`!]

But this gives me all the items under Document 3.

Does anyone know the correct way to do this?

Thanks!

هل كانت مفيدة؟

المحلول

According to the documentation Documents: overrides parents property. Ditto docs

So your code should look like:

[!Ditto? &documents=`10,32,339,86,303,302` &tpl=`blog_summary`!]

PS: maximkou's might fail because parent 0 is considered the topelement of the hierarchy.

نصائح أخرى

Try to set a "parents" parameter to 0 or delete parameter "parents", documents exactly are childs of document with id=3?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top