I don't want to have a summary page. On my site, we need to ensure that the default posting is the most recent posting added to the channel; how can we do that?
The trick is to set the SortOrdinal
property of the posting to equal the number of postings such that the most recent posting always has the highest SortOrdinal
value. Another method is to set the Default Posting Name to be that of the last posting added to the channel. You can do this by writing a script in the Workflow Event Handlers (discussed in Chapter 16) to update these properties whenever a new posting is created and approved.
How can I display the contents of placeholders in my summary page? For example, I would like to have the plant's image displayed alongside its name.
Use the code in Chapter 12 to get the contents of the placeholder you wish to display and add them to the code used to generate the summary.