CuBoulder / tiamat-theme

University of Colorado Boulder Drupal 9+ base theme
GNU General Public License v2.0
3 stars 0 forks source link

Newsletter Archives & Lists #1391

Open kevincrafts opened 1 month ago

kevincrafts commented 1 month ago

In D7 Express, there's two ways to show previous newsletters:

Archive Page

A paginated list, sorted by most recent, of all newsletters of a specific type. This is not a content type. Just a path that will return the display of newsletters with the titles and summary.

Example: https://www.colorado.edu/today/newsletter/cbt-students

Newsletter List Block

A block can also be created that allows the editor to choose which type and how many (1-10) recent newsletters they want to display. Underneath the list there is a link to the archive page to see more newsletters. The display is the newsletter title and summary.

Example: https://www.colorado.edu/today/newsletter-list

patrickbrown-io commented 3 days ago

Archive Page

There is an issue. The summary isn't simply a summary field on a Newsletter-- it is the first Article or User-Content in the Newsletter used as a summary. Which means its a paragraph, in a paragraph, in a paragraph, which will have another reference to an Article if its an Article content paragraph. The "summary" grabs that first Article or pseudo-Article title buried in this monster nesting dolls of paragraphs. I don't believe we can dive that deep like that on a View which would satisfy the paginated and not-a-content type endpoint requirement.

Options: