Blog feed section
Closed
Blog feed section
Shows the following from the 3 newest posts:
- image (optional)
- category (limited to one, the first in the list selected by the author)
- Title
- Teaser text
- Read more link
If there isn’t an image for a post, the title should get larger. See the LitSmart example below.
Image, title, and Read more link should all link to the post. Blog post title should underline on rollover.
Clicking on a category tag would take you to the view of all the posts in that category.
“More Blog Posts” link at bottom center of section links to the list of all posts matching the criteria set up in the assembly (list below). Or it can just link to the blog main page, if that’s a big ask.
Admin Options
- Optional title field for the assembly
- Ability to select from / filter by blog categories (can select more than one)
- Ability to select from / filter by authors (can select more than one)
- Ability to select from / filter by blog (if the site has more than one, like Cross and OE)
More examples of this assembly
We decided to start with the built-in users as authors @derek
So as far as the "read more" link goes, here is what I can link to with a nice alias:
- a single blog
- a single taxonomy term
- a single blog + single taxonomy term
I don't have url aliases for anything else (including "all blog posts"). I can link to a view, but the urls are going to be pretty ugly, e.g. filtering on three blogs (ids 1, 2, 3), any author, and a one taxonomy terms (tid 84) would look like /blog_feed/1+2+3/all/84.
We're generating the existing aliases whenever a new term or blog is created. Due to combinatorial explosion we can't really generate aliases for all these possibilities. But what we might be able to do is generate an alias on-demand when a section is saved. It's just a question of whether it's worth the effort. @matt @megan
assigned to @derek
Remaining tasks
- Template for teasers to move blog post title under the image/category
- Add a conditional class to the title based on whether an image is present
- When a single blog, single category, or single blog+category is chosen as the filter, use the SEO-friendly url aliases for the More Blog Posts list
closed via commit f49c537d