In this chapter, we demonstrated some of the ways that you can aggregate content from MCMS as we built up the TropicalGreen home page from scratch. We learned how to create a list of sections and lists of recently changed and recently added content. We started by working with a collection of channels, listing channels and their descriptions in the Summary of Sections area of the home page.
Next, we used the Searches.NewPostings()
method to get a list of postings that have been modified in the last five days and listed them in the Recent Content
section. We went on to show an alternative method of retrieving a collection of postings that were added in the last five days by combining a list of all postings under the TropicalGreen channel and sorting them by their start dates. We checked their start dates to see which postings were added within the last five days and added them to the Recently Added
section of the home page.
Finally, we suggested alternative ways to aggregate content...