Question 1:
What is Reflect realy does... And please dont tell me it creates a doc archive. So .... what does Reflect really do?
Question 2:
What is the input data that Reflect should procces?
Question 3:
What is ditto have to do with Reflect?
These questions are posted here, because there isn’t a clear documentation for these snippets, and how they should be used.
The only thing I need is to understand. I could take this snippets and read the hole source, and who knows mabe in a month or 2 I could understand what is going on there... but I don’t think this is an efficient way to learn new things. I think you would agrea with me on this... That is why we(the average users) need a clear view of what really happens.
This being said, can you tell me, us, if we will have an organised tutorial/doc package for this 2 snippets in the near future?
-
☆ A M B ☆
- 24,524 Posts
http://ditto.modxcms.com/tutorials/wordpress-style-archives.html
Really, Reflect does create an archive of documents.
ar·chive (är′kīv′)
noun
1.
1. a place where public records, documents, etc. are kept
2. a place where material having documentary interest, as private papers, institutional records, memorabilia, or photographs, is kept
2. the records, material, etc. kept in either of such places
Etymology: Fr archif < LL archivum < Gr archeion, town hall < archē, the beginning, government
transitive verb -·chived′, -·chiv′·ing
to place or keep (records, papers, etc.) in or as in archives
Ditto lists your news/blog/whatever documents, usually up to a certain limit; for example the 10 latest documents, or all documents from this month. Reflect is designed to provide organized access to the documents that are no longer being displayed by Ditto. Both Ditto and Reflect are far too flexible to be able to concisely state how to use them. It depends on what you have and what you want to do with it.
""Ditto lists your news/blog/whatever documents, usually up to a certain limit; for example the 10 latest documents, or all documents from this month. Reflect is designed to provide organized access to the documents that are no longer being displayed by Ditto. Both Ditto and Reflect are far too flexible to be able to concisely state how to use them. It depends on what you have and what you want to do with it.""
THen why do we need reflect for? It is not like it creates "folders" for each month/year. We could use ditto and add a filter clause...
-
☆ A M B ☆
- 24,524 Posts
Well, there you go... MODx = MODular, Extensible. There are many ways to do just about everything. Most people seem to find Reflect a good system for organizing and displaying their archives.
ok, so we have reflect for creating archives...
&dittoSnippetParameters=`parents:2`&id=`wp`
from what I see here, I belive that reflect will actually make a call to the Ditto snippet?
That’s correct. In your example it is like using ditto with parents=`2`. The advantage to using Reflect is that it can group items by date, where in Ditto you would need to repeat the filter for each month rather than do it all in one call (Ditto does not have a "group by" clause).